Glowup
INPUTS · 26 / 89
RadioButton
RadioButton — a Material You inputs component for React Native and web.
󱀫
packages/ui/src/components/RadioButton.tsx
Live demo
Properties
5 controls
Selected
Label
Label position
Right
󰍝
Disabled
Error
Usage
RadioButton.tsx
<RadioButton selected label="Single option" />
Variants
The states and shapes this component is meant to be used in.
Selection
Disabled and error
Label position
API reference
Generated from the library's TypeScript, so it cannot drift from the implementation.
Props
7 on RadioButtonProps
onPress
required
() => void
selected
required
boolean
disabled
boolean
error
boolean
feedback
boolean
default: true
Report the selection to `ThemeProvider`'s `onInteractionFeedback` (haptics). Defaults to true.
label
string
labelPosition
"left" | "right"
default: "right"