Skip to content

RadioGroup

Open .md
Live preview

Loading example…

RadioGroup is part of the Atoms set, imported from @jcsoftdev/ui/atoms.

import { RadioGroup } from "@jcsoftdev/ui/atoms";

Single-component entry points tree-shake to just this component: @jcsoftdev/ui/atoms/radio-group.

<RadioGroup
options={options}
defaultValue="efectivo"
aria-label="Método de pago"
/>
Prop Type Default Description
options * RadioOption[]

* marks a required prop.

It also accepts the native props of the element or primitive it renders (for example className, id, aria-* and event handlers).

packages/ui/src/atoms/radio-group/radio-group.tsx