You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Add explanation that Radio is part of the Toggle component system
- Document the inputDetailStyle prop for customizing the dot indicator
- Add usage example
Fixes#3021
Copy file name to clipboardExpand all lines: docs/boilerplate/app/components/Radio.md
+19-1Lines changed: 19 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,24 @@ import ToggleProps from './\_toggle_props.mdx';
6
6
7
7
# Radio
8
8
9
-
The `Radio` component provides a simple way to collect user input for a boolean value.
9
+
This is the `Radio` variant of the [Toggle component](https://github.com/infinitered/ignite/blob/master/boilerplate/app/components/Toggle/Toggle.tsx). It renders a circular toggle with an inner dot indicator.
10
+
11
+
```tsx
12
+
<Radiovalue={value}onValueChange={setValue} />
13
+
```
14
+
15
+
## Radio Props
16
+
17
+
### `inputDetailStyle`
18
+
19
+
The `inputDetailStyle` prop allows you to customize the inner dot indicator. This affects the small circular dot that appears when the radio is in the "on" state.
0 commit comments