--- title: Radio sidebar_label: Radio --- import { StoryWithControls } from '../../../src/components/StorybookWrapper'; # Radio Radio button component for selecting one option from a set. Supports standalone radio buttons, radio buttons styled as buttons, and grouped radio buttons with layout configuration. ## Live Example ## Try It Edit the code below to experiment with the component: ```tsx live function Demo() { return ( Radio ); } ``` ## Radio Button Variants ```tsx live function RadioButtonDemo() { const [value, setValue] = React.useState('line'); return ( setValue(e.target.value)}> Line Chart Bar Chart Pie Chart ); } ``` ## Vertical Radio Group ```tsx live function VerticalDemo() { const [value, setValue] = React.useState('option1'); return ( setValue(e.target.value)}>
First option Second option Third option
); } ``` ## Props | Prop | Type | Default | Description | |------|------|---------|-------------| | `value` | `string` | `"radio1"` | The value associated with this radio button. | | `disabled` | `boolean` | `false` | Whether the radio button is disabled. | | `checked` | `boolean` | `false` | Whether the radio button is checked (controlled mode). | | `children` | `string` | `"Radio"` | Label text displayed next to the radio button. | ## Import ```tsx import { Radio } from '@superset/components'; ``` --- :::tip[Improve this page] This documentation is auto-generated from the component's Storybook story. Help improve it by [editing the story file](https://github.com/apache/superset/edit/master/superset-frontend/packages/superset-ui-core/src/components/Radio/Radio.stories.tsx). :::