Choice Card

Rich radio cards where the whole card is the option, with one tab stop and arrow-key navigation.

Available in
  • Angular: available
  • Vue: available
  • React: available
  • React Native: available

Usage

Import

ts
import {
  SoneChoiceCardDescriptionDirective,
  SoneChoiceCardDirective,
  SoneChoiceCardIndicatorDirective,
  SoneChoiceCardTitleDirective,
  SoneChoiceGroupDirective,
} from "@surface-one/angular/choice-card";

API reference

SoneChoiceCardDescriptionDirectiveDirective

Selector
[soneChoiceCardDescription]

SoneChoiceCardDirectiveDirective

Selector
[soneChoiceCard]
Inputs
NameType Default
selectedbooleanfalse
orientation"vertical" | "horizontal""vertical"

SoneChoiceCardIndicatorDirectiveDirective

Selector
[soneChoiceCardIndicator]

SoneChoiceCardTitleDirectiveDirective

Selector
[soneChoiceCardTitle]

SoneChoiceGroupDirectiveDirective

Selector
[soneChoiceGroup]
Inputs
NameType Default
orientation"vertical" | "horizontal" | nullnull