Container that groups related content and actions.
This component is based on the div
element and supports common margin props.
Prop | Type | Default |
---|---|---|
asChild | boolean | |
size | Responsive<"1" | "2" | "3" | "4" | "5"> | "1" |
variant | "surface" | "classic" | "ghost" | "surface" |
Use the asChild
prop to render the card as a link or a button. This prop adds styles for the interactive states, like hover and focus.
Use the size
prop to control the size.
Currently, we recommend using only sizes 1 and 2 following the ScaleUI Radix design system.
Use the variant
prop to control the visual style.
Currently, we recommend using only the surface
variant following the ScaleUI Radix design system.
Use the Inset component to align content flush with the sides of the card.