Checkbox Group
A group of checkbox inputs for selecting multiple options from a list. 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
_checkbox_group.html.erb
███
████████ █████ █████████ █████████
█████ ████ ████ ████████
███ █████████ ██████ █████ ██ ███ ██
███ ██████ ████████████████████████████ █████ ██ ██████████ ███████████
██████ ███████ ████ ███████████
████████ █
█ ██████ █████████████ ██████ ███████ ████████████ ██████████ █████████ ███ ████████ ██
█ ██████ █████████ ██████ █████████ ████████████ ██████ ███ ██████ ███████ ██
checkbox_group_component.html.erb
█████████ ██████████ █████████████████ ████
██ ██ ███████████████ ██
███████ ██████████████ ███████████ ██████████████ ███████████████ ██████
███ ██████ ██
██ ██ █████████ ██
█████ ███████████████████ ████████████████
██ ███ ██
█████████
██ ███ ██
checkbox_group_component.rb
█ ██████████████████████ ████
█████ ██████████████████████ █ ███████████████████
███████ █ ███████████ ██████████████████
███████████ ██████ ███████████ ██████ █████████ ██████████ ███████ ██████
████████ ██████████ ██████████ ██████
███ ███████████
█████████
Changelog
- Initial release with form builder and standalone modes
- Vertical and horizontal layout options
- Support for option descriptions
- Multi-select with array values
- 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