@hanzo/ui

Choice

import { ChoiceCard, ChoiceGroup, RadioCircle } from '@hanzo/ui'

No examples yet.

Types

export type ChoiceCardProps = Omit<ComponentProps<typeof Frame>, 'children' | 'onPress' | 'compact'> & {
  selected: boolean
  onSelect: () => void
  /** A radio in the top-end corner, so the card reads as one option of a set. */
  indicator?: boolean
  children?: ReactNode
}
export type ChoiceGroupProps = ComponentProps<typeof XStack> & { label: string }

Exports

ChoiceCardChoiceGroupRadioCircletype ChoiceCardPropstype ChoiceGroupProps