Radio group

One choice from a few, all in view.

Example

tsx
<RadioGroup defaultValue="d1">
  <Stack direction="row" gap="sm" align="center">
    <Radio value="d1" />
    <Label>D1</Label>
  </Stack>
  <Stack direction="row" gap="sm" align="center">
    <Radio value="postgres" />
    <Label>Postgres</Label>
  </Stack>
</RadioGroup>

Usage

Pages are built on the server: import the tags from @dash/server and return the tree. The browser runtime draws it.
tsx
import { RadioGroup, Radio, Label, Stack } from "@dash/server";

Props

RadioGroupProps

Prop
Type
Description
valuestring
defaultValuestring
orientation"horizontal" | "vertical"
disabledboolean
onValueChange(value: string) => void

RadioProps

Prop
Type
Description
value (required)string
disabledboolean
PreviousCheckbox
NextSwitch
On this page