RadioGroup
uitemplate
RadioGroup: renders a vertical list of mutually exclusive options
Terminal
$termuijs render radio-group
Installation
$ bunx termuijs add radio-group
Copies the source into src/components/radio-group/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { RadioGroup } from '@termuijs/ui'ts
new RadioGroup(config: RadioGroupOptions)API Reference
RadioGroup
| Prop | Type | Required | Description |
|---|---|---|---|
options | Array<RadioGroupOption> | required | — |
defaultValue | string | optional | — |
onChange | (value: string) => void | optional | — |