UNPKG

liber-salti

Version:

Saltí - Liber Design System

37 lines (36 loc) 934 B
import React from 'react'; export interface RadioGroupProps { /** * The content of the component. */ children?: React.ReactNode[] | React.ReactNode; /** * The error string. */ error?: string; /** * The label of the component. */ label?: string; /** * Text shown on the bottom of the element. */ helperText?: string; /** * Value of the selected radio button. */ value?: string; /** * The default value. Use when the component is not controlled. */ defaultValue?: string; /** * The name used to reference the value of the control. * If you don't provide this prop, it falls back to a randomly generated name. */ name?: string; /** * Callback fired when a radio button is selected. */ onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void; }