Skip to content
Size picker, light
Light
Size picker, dark
Dark

Every state

  • Size picker, default, light
    Size picker, default, dark

    default

  • Size picker, hover, light
    Size picker, hover, dark

    hover

  • Size picker, focus, light
    Size picker, focus, dark

    focus

  • Size picker, selected, light
    Size picker, selected, dark

    selected

  • Size picker, low-stock, light
    Size picker, low-stock, dark

    low-stock

  • Size picker, error, light
    Size picker, error, dark

    error

  • Size picker, disabled, light
    Size picker, disabled, dark

    disabled

Props

PropTypeDefaultWhat it does
idstring"size"Id prefix; each option is `${id}-${value}`.
namestring"size"Form field name.
legendstring"Size"The group's visible label.
optionsChoiceCardSizeOption[]–Sizes: value, label, name, stock (in, low, out), left.
defaultValuestring–The size chosen at the start.
guide{ label: string; href: string }–A link beside the legend, e.g. a size guide.
onValueChange(value: string) => void–Called with the chosen size.
requiredboolean–Requires a choice before the form submits.
disabledboolean–Disables the whole group.
errorstring–Error message; marks the group invalid.
classNamestring–Extra classes on the fieldset.

More choice cards

All 12
choice-card-10 is in UI ProGet UI Pro, €199

Preview

Open the page
In UI Pro: get it, €199 once

With every block and theme. 400+ buyers since 2020. Plans