Skip to content
Eskais UI

Forms

Radio Group

UI SDK RadioGroup and Radio: pick one with arrow keys, named by Field.

Example

Installation

npx shadcn@latest add @eskais/radio-group
Brings alongfieldlabel

Usage

Import
import { createRadioGroupController, Radio, RadioGroup, RadioIndicator } from "@/components/ui/radio-group"

API reference

Other exports

createRadioGroupControllertype RadioGroupControllertype RadioGroupStatetype RadioState

Accessibility

  • One tab stop; arrow keys move and select.
  • Named by its Field label or aria-label.

Agent actions

Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.