Skip to content
  • System
  • Light
  • Dark
  • High contrast

Radio

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>
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>
PropTypeDescription
labelstringLabel rendered to the right of the radio button.
valuestringThe value submitted with the form when this radio is selected.
disabledbooleanPrevents interaction with this option.
PropTypeDescription
legendstringGroup label. Required for screen reader context.
namestringForm field name shared across all radios in the group.
hintstringOptional hint text rendered below the legend.
errorstringValidation error message for the group.
childrenReactNode

Radio components to render inside the group.