About Visual Picker
Visual Picker enhances radio buttons and checkboxes with larger, more visual selection areas. Use it when you want to make selection options more prominent and easier to click, especially for important choices or when displaying options with icons or images.Components
- VisualPickerRadioGroup - Radio button group container
- VisualPickerRadio - Individual radio option
- VisualPickerCheckboxGroup - Checkbox group container
- VisualPickerCheckbox - Individual checkbox option
Installation
Usage
Radio Group
Checkbox Group
Props
VisualPickerRadioGroup
VisualPickerRadio
VisualPickerCheckboxGroup
VisualPickerCheckbox
Orientation
Control the layout with theorientation prop:
Vertical (default)
Horizontal
With Icons
Enhance options with icons:Error State
Show validation errors:Disabled State
Disable the entire group:Accessibility
- Uses semantic fieldset/legend structure
- Proper radio/checkbox ARIA attributes
- Keyboard navigation support
- Error messages linked with
aria-describedby - Focus indicators on keyboard navigation
- Legend provides context for the group
When to Use
Use Visual Picker when:
- Making important selections more prominent
- Options include icons or images
- You have 2-5 options to choose from
- Selection is a primary action on the page
Use standard Radio/Checkbox when:
- You have many options (6+)
- Options are simple text labels
- Space is constrained
- Selection is secondary to other actions
Related components
- Radio Group - Standard radio buttons
- Checkbox - Standard checkboxes
- Button - For mutually exclusive actions