Radio Group
A group of radio button inputs for selecting a single option from multiple choices. Supports both form builder mode (with Rails form objects) and standalone usage. Options can include descriptions and can be laid out vertically or horizontally.
Preview & Code
_radio_group.html.erb
███
█████ █████ █████████ █████████
█████ ████ ████ ████████
███ █████████ ██████ █████ ██ ███ ██
███ ██████ █████████████████████████ █████ ██ ██████████ ██████
██████ ███████ ████ ██████
████████ █
█ ██████ ███████ ██████ ███████ ████████████ ██████ █████████ ██
█ ██████ ██████ ██████ ██████ ████████████ █████████ █████████ ██
radio_group_component.rb
█ ██████████████████████ ████
█████ ███████████████████ █ ███████████████████
███████ █ ███████████ ██████████████████
███████████ ██████ ███████████ ██████ █████████ ██████████ ███████ ██████
████████ ██████████ ██████████ ██████
███ ███████████
█████████
radio_group_component.html.erb
█████████ ██████████ █████████████████ ████
██ ██ ███████████████ ██
███████ ██████████████ ███████████ ██████████████ ███████████████ ██████
███ ██████ ██
██ ██ █████████ ██
█████ ███████████████████ ████████████████
██ ███ ██
█████████
██ ███ ██
Changelog
- Initial release with form builder and standalone modes
- Vertical and horizontal layout options
- Support for option descriptions
- Automatic error detection from Rails form objects
- Dark mode support
Get Full Access
Unlock the source code for this component and all others. One-time payment for lifetime access.
Get Access Now