Card
Bordered, shadow-dropped container. Tone controls fill.
primitive card
Controls
tone
interactive
Current props
tone: ""interactive:
Usage
primitive.Card(primitive.CardProps{
Tone: token.ToneCyan,
},
primitive.Heading(primitive.HeadingProps{Level: 3}, g.Text("Title")),
h.P(g.Text("Body content")),
)All combinations (11)
Enum controls only · bool and text use defaults
Props
| Name | Type | Options | Default |
|---|---|---|---|
tone | enum | , yellow, cyan, violet, pink, lime, mint, sky, blush, accent, accent-2 | |
interactive | bool | — | false |