Radio
RadioGroup
Section titled “RadioGroup”Export format
import { Radio, RadioGroup } from '@eekodigital/raster';
<RadioGroup legend="Export format" name="format">
<Radio label="PDF" value="pdf" />
<Radio label="CSV" value="csv" />
<Radio label="JSON" value="json" />
</RadioGroup> With hint and error
Section titled “With hint and error”Export formatChoose the format that best suits your workflow.Error: Please select an export format.
<RadioGroup
legend="Export format"
name="format"
hint="Choose the format that best suits your workflow."
error="Please select an export format."
>
<Radio label="PDF" value="pdf" />
<Radio label="CSV" value="csv" />
</RadioGroup> Props — Radio
Section titled “Props — Radio”| Prop | Type | Description |
|---|---|---|
label | string | Label rendered to the right of the radio button. |
value | string | The value submitted with the form when this radio is selected. |
disabled | boolean | Prevents interaction with this option. |
Props — RadioGroup
Section titled “Props — RadioGroup”| Prop | Type | Description |
|---|---|---|
legend | string | Group label. Required for screen reader context. |
name | string | Form field name shared across all radios in the group. |
hint | string | Optional hint text rendered below the legend. |
error | string | Validation error message for the group. |
children | ReactNode |
|