Tangible Design System · @tangible/ui 0.2.29 · Interactive version · Markdown

RadioGroup

import { RadioGroup } from '@tangible/ui';

Interactive docs and examples: RadioGroup in Storybook.

RadioGroup props

Prop Type Default Description
children ReactNode
aria-describedby? string
aria-invalid? "false" | "true" | boolean
aria-label? string
aria-labelledby? string
aria-required? "false" | "true" | boolean
className? string
defaultValue? OptionValue
disabled? boolean false
loop? boolean true
onValueChange? (value: OptionValue) => void
orientation? "horizontal" | "vertical" 'vertical'
value? OptionValue

RadioGroup.Item

Also exported as Radio.

Prop Type Default Description
value OptionValue
aria-label? string
aria-labelledby? string
children? ReactNode
className? string
description? string Description text displayed below the label.
disabled? boolean false
label? ReactNode

Also accepts the standard attributes of HTMLAttributes (data-*, aria-*, event handlers), passed to the element it renders.

Examples

Other stories: Basic, Horizontal, No Default Selection, Disabled, Disabled Option, Controlled, Dot Notation (interactive page).

Component API tokens

Read via fallback, never declared. Set one on an ancestor to restyle every instance under it.