Marigold
Marigold

Application

MarigoldProvider
RouterProvider

Layout

Aside
Aspect
Breakout
Center
Columns
Container
Grid
Inline
Inset
Scrollable
Split
Stack
Tiles

Actions

ActionBaralpha
Button
Link
LinkButton
ToggleButtonalpha
ToggleButtonGroupalpha

Form

Autocomplete
Calendar
Checkbox
ComboBox
DateField
DatePicker
FileField
Form
Multiselectdeprecated
NumberField
Radio
SearchField
Select
Slider
Switch
TagFieldbeta
TextArea
TextField
TimeField

Collection

SelectList
Tableupdated
Tag

Navigation

Accordion
Breadcrumbs
Pagination
Sidebarbeta
Tabs
TopNavigationbeta

Overlay

ContextualHelp
Dialog
Drawer
Menu
Toastbeta
Tooltip

Content

Badge
Card
Divider
EmptyStatebeta
Headline
Icon
List
Loader
SectionMessage
SVG
Text

Formatters

DateFormat
NumericFormat

Hooks and Utils

cn
cva
extendTheme
parseFormData
useAsyncListData
useListData
useResponsiveValue
useTheme
VisuallyHidden
Components

Card

Component to support the structuring of information.

A <Card> component is a versatile UI element used to display content in a concise, visually organized format. It's typically presented as a rectangular box with various content elements such as images, text, buttons, and icons. Cards are ideal for grouping related information and making it easily digestible, often used to display previews of articles, products, user profiles, and other content types.

Anatomy

The <Card> component consists of a container which is basically a <div>. You can pass any content and components as children to the component.

Anatomy of card component

Appearance

The appearance of a component can be customized using the variant and size props. These props adjust the visual style and dimensions of the component, available values are based on the active theme.

The selected theme does not has any options for"size".
Reservix GmbH (1)
PropertyTypeDescription
variantdefault | master | adminThe available variants of this component.
size-The available sizes of this component.

Usage

The <Card> component enhances the visual hierarchy and organization of content, making it easier for users to engage with various pieces of information.

Elevation layer

<Card> uses the raised elevation layer to create a visual distinction between the card and the background. According to our design guidelines, the card should be used on top of the sunken or default layer.

sunken layer 👍

Earliest event date:
3/17/2026
Latest event date:
3/18/2026
Total events:
10

default layer 👍

Earliest event date:
3/17/2026
Latest event date:
3/18/2026
Total events:
10

Same layer like card 👎

Earliest event date:
3/17/2026
Latest event date:
3/18/2026
Total events:
10
import { Card, Inline, Stack, Text } from '@marigold/components';export default () => (  <>    <div className="bg-bg-surface-sunken shadow-surface-sunken rounded-xl p-4">      <p>sunken layer 👍</p>      <Card p={4}>        <Stack>          <Inline>            <Text>Earliest event date:</Text>            <Text weight="bold">              {new Date(Date.now()).toLocaleDateString()}            </Text>          </Inline>          <Inline>            <Text>Latest event date:</Text>            <Text weight="bold">              {new Date(Date.now() + 3600 * 1000 * 24).toLocaleDateString()}            </Text>          </Inline>          <Inline>            <Text>Total events:</Text>            <Text weight="bold">10</Text>          </Inline>        </Stack>      </Card>    </div>    <div className="bg-bg-surface shadow-surface rounded-xl p-4">      <p>default layer 👍</p>      <Card p={4}>        <Stack>          <Inline>            <Text>Earliest event date:</Text>            <Text weight="bold">              {new Date(Date.now()).toLocaleDateString()}            </Text>          </Inline>          <Inline>            <Text>Latest event date:</Text>            <Text weight="bold">              {' '}              {new Date(Date.now() + 3600 * 1000 * 24).toLocaleDateString()}            </Text>          </Inline>          <Inline>            <Text>Total events:</Text>            <Text weight="bold">10</Text>          </Inline>        </Stack>      </Card>    </div>    <div className="bg-bg-surface-raised shadow-surface-raised rounded-xl p-4">      <p>Same layer like card 👎</p>      <Card p={4}>        <Stack>          <Inline>            <Text>Earliest event date:</Text>            <Text weight="bold">              {new Date(Date.now()).toLocaleDateString()}            </Text>          </Inline>          <Inline>            <Text>Latest event date:</Text>            <Text weight="bold">              {new Date(Date.now() + 3600 * 1000 * 24).toLocaleDateString()}            </Text>          </Inline>          <Inline>            <Text>Total events:</Text>            <Text weight="bold">10</Text>          </Inline>        </Stack>      </Card>    </div>  </>);
Do
Use Card on top of default or sunken layers.
Don't

Don't use card in cards or same elevation layers.

Props

Did you know? You can explore, test, and customize props live in Marigold's storybook. Watch the effects they have in real-time!
View Card stories

Card

Prop

Type

Related

Elevation

This page should introduce you on how to use elevation with Marigold.

Admin- & master mark

Used for marking internal-only features.
Last update: 3 minutes ago

Badge

Component for short notes with one color as status messages

Divider

Component to separate content.

On this page

AnatomyAppearanceUsageElevation layerPropsCardRelated