Card
Props
Prop | Type | Default |
---|---|---|
structure | column | split | row | - |
frame | fill | panel | panel |
radius | none | auto | auto |
size | sm | md | lg | - |
compact | attribute | true |
contrast | attribute | - |
color | base | brand | - |
variant | ghost | subtle | surface | outline | soft | solid | subtle |
theme | string | - |
text | string | - |
html | string | - |
as | HTMLTag | a |
HTML Attributes | Polymorphic<as> | - |
Examples
frame
Applies a margin around certain child elements and applies the background and border set in your color variables
Lorem ipsum dolor
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Lorem ipsum dolor
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
panel
Has both outer margins and inner paddings.
size
The size prop cascades: it is inherited from the parent and it is applied to all children.
Lorem ipsum dolor
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Lorem ipsum dolor
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Lorem ipsum dolor
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
variant
Lorem ipsum dolor
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Lorem ipsum dolor
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Lorem ipsum dolor
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Lorem ipsum dolor
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Lorem ipsum dolor
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
structure
Applies all styles & props of the chosen Structure
component to this component.
split
Equal columns above a certain breakpoint, based on CSS grid.
On small screens it behaves the same as column
.
spread
Structures children in a row with space between them and wrapping.
row
Structures children in a horizontal row.
../../../../../ui/src