Skip to content
Yes-no cards, light
Light
Yes-no cards, dark
Dark

Every state

  • Yes-no cards, default, light
    Yes-no cards, default, dark

    default

  • Yes-no cards, hover, light
    Yes-no cards, hover, dark

    hover

  • Yes-no cards, focus, light
    Yes-no cards, focus, dark

    focus

  • Yes-no cards, selected, light
    Yes-no cards, selected, dark

    selected

  • Yes-no cards, error, light
    Yes-no cards, error, dark

    error

  • Yes-no cards, disabled, light
    Yes-no cards, disabled, dark

    disabled

Props

PropTypeDefaultWhat it does
idstring"yes-no"Id prefix; each option is `${id}-${value}`.
namestring"yes-no"Form field name of the radios.
legendstring"Do you need step-free access?"The question.
descriptionstring–Help line under the question.
options[ChoiceCardYesNoOption, ChoiceCardYesNoOption]–The two answers: value, title, detail, disabled.
showIconsbooleantrueDraws a tick and a cross on the cards.
defaultValuestring–The answer chosen at the start.
requiredboolean–Requires an answer before the form submits.
disabledboolean–Disables both cards.
errorstring–Error message; marks the group invalid.
classNamestring–Extra classes on the fieldset.

More choice cards

All 12

Preview

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

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