Skip to content

Properties

TypeDescription
outsetboolean(optional) Whether or not to break out (using negative margins) on larger screens. Defaults to false.
stackboolean(optional) True to stack the sub components with space between. The spacing will default to medium. Defaults to false.
direction"horizontal"
"vertical"
(optional) Defaults to vertical.
alignSelf"flex-start"
"flex-end"
"center"
"baseline"
"stretch"
(optional) Defaults to stretch.
titleReact.ReactNode(optional) Define a title that appears on top of the Card.
responsiveboolean(optional) Define if the card should behave responsive. Defaults to true.
filledboolean(optional) Define if the Card should get the same background color as the outline border.
outlinestring(optional) Define the outline color. Defaults to var(--card-outline-color).
outlineWidthstring
number
(optional) Define the outline width. Defaults to var(--card-outline-width) (0.0625rem).
dropShadowboolean(optional) Define if the Card should have drop shadow. Uses Section dropShadow.
backgroundColorstring(optional) Define the background color. Defaults to var(--card-background-color).
elementReact.Element(optional) Define the type of element. Defaults to section.
childrenReact.ReactNode(required) Contents.
Flex.ContainerVarious(optional) Flex.Container properties.
Flex.ItemVarious(optional) Flex.Item properties.
Spacestring
object
(optional) Spacing properties like top or bottom are supported.

Card.Action Properties

TypeDescription
hrefstring(optional) The URL to navigate to. When set, renders an anchor element.
tostring(optional) Route path for use with a router Link component (e.g. react-router). Pass a custom element that accepts to.
targetstring(optional) The anchor target attribute.
relstring(optional) The anchor rel attribute.
elementstring
React.Element
(optional) Custom element to render as the wrapper. Defaults to a when href/to is set. Use this for router Link components.
onClickfunction(optional) Click handler. When used without href/to, renders a button-like wrapper with keyboard support (Enter/Space).
childrenReact.ReactNode(required) Contents of the Card inside the action wrapper.
Card propertiesVarious(optional) All Card properties are supported.

Card.List Properties

TypeDescription
childrenReact.ReactNode(required) Card.ListItem elements.
Spacestring
object
(optional) Spacing properties like top or bottom are supported.

Card.ListItem Properties

TypeDescription
centerboolean
"when-small"
(optional) Center the content of the list item. Use true to always center, or "when-small" to center only on small screens.
childrenReact.ReactNode(required) A Card or Card.Action element.
Spacestring
object
(optional) Spacing properties like top or bottom are supported.