Skip to content
Role choice, light
Light
Role choice, dark
Dark

Every state

  • Role choice, default, light
    Role choice, default, dark

    default

  • Role choice, hover, light
    Role choice, hover, dark

    hover

  • Role choice, focus, light
    Role choice, focus, dark

    focus

  • Role choice, selected, light
    Role choice, selected, dark

    selected

  • Role choice, disabled, light
    Role choice, disabled, dark

    disabled

Props

PropTypeDefaultWhat it does
idstring"role"Id prefix; each role is `${id}-${value}`.
namestring"role"Form field name of the radios.
legendstring"What brings you here?"The group's visible question.
descriptionstring–Help line under the legend.
optionsChoiceCardRoleOption[]–Two or three roles: value, icon, title, lines (two), disabled.
defaultValuestring–The role chosen at the start.
continueLabelstring"Continue"Label of the button under the cards.
disabledboolean–Disables the cards and the button.
onContinue(value: string) => void–Called with the chosen role when Continue is pressed.
onValueChange(value: string) => void–Called when the chosen role changes.
classNamestring–Extra classes on the fieldset.

More choice cards

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