Import Choice Card and compose its parts.
The sample also uses Switch. One command adds them with this item:
choice-card.tsx
ChoiceCard
<label>| Prop | Type | Default | Description |
|---|---|---|---|
| align | "center""start" | "start" | |
| size | "default""sm" | "default" | |
| class | string | — | |
| indicator | "end""start" | — | Where the control sits: start or end (logical sides). Default: end for a Switch (the settings convention), start for a Checkbox or a Radio. |
| ...props | <label> attributes | — | Every other attribute goes to the <label>, with a ref. |
ChoiceCardList
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| columns | 123 | 1 | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
ChoiceCardIcon
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| variant | "icon""image" | "icon" | icon: a foreground 6% box with a 16px icon. image: a picture that fills the box. |
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
ChoiceCardContent
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
ChoiceCardDescription
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
ChoiceCardAddon
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
ChoiceCardFooter
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |





