Hoppa till innehåll

RadioButton.Group

Terminal window
npm install @sk-web-gui/react
import { RadioButton.Group } from '@sk-web-gui/react';
PropTypStandardBeskrivning
idstringThe id of the radio group.
namestringThe name of the radio group. This prop is passed to each checbox
childrenReact.ReactNodeThe content of the radio group. Must be the Radio component
defaultValueRadioButtonProps['value']The initial value of the radio group
valueRadioButtonProps['value']The value of the radio group
sizeRadioButtonProps['size']Size of all wrapped radio
colorRadioButtonProps['color']Color of all wrapped radio
onChange(event: React.ChangeEvent<HTMLInputElement>, value: RadioButtonProps['value']) => voidThe callback fired when any children Radio is checked or unchecked
inlinebooleanIf true, the radio will aligned horizontally.
  • Template – standardstory
  • ExampleWithForm – standardstory