Skip to content
Toggle add-ons, light
Light
Toggle add-ons, dark
Dark

Every state

  • Toggle add-ons, default, light
    Toggle add-ons, default, dark

    default

  • Toggle add-ons, focus, light
    Toggle add-ons, focus, dark

    focus

  • Toggle add-ons, some-on, light
    Toggle add-ons, some-on, dark

    some-on

  • Toggle add-ons, all-on, light
    Toggle add-ons, all-on, dark

    all-on

  • Toggle add-ons, disabled, light
    Toggle add-ons, disabled, dark

    disabled

Props

PropTypeDefaultWhat it does
idstring"add-ons"Id prefix; each switch is `${id}-${value}`.
namestring"extras"Form field name; each switch that is on posts its value.
legendstring"Optional extras"The group's visible label.
descriptionstring–Help line under the legend.
optionsChoiceCardAddOnsOption[]–Extras: value, name, detail, price, disabled.
defaultValuestring[]–Values switched on at the start.
currencystring"EUR"ISO currency code for the prices.
localestring"en-GB"Locale for the price format.
periodstring"a month"What the price is per.
disabledboolean–Disables every switch.
onValueChange(values: string[], total: number) => void–Called with the switched-on values and their total.
classNamestring–Extra classes on the fieldset.

More choice cards

All 12
choice-card-01 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