Checkbox
A single checkbox input with label and optional description text. Supports both form builder mode (with Rails form objects) and standalone usage. Includes error states and disabled styling.
Preview & Code
_checkbox.html.erb
███
████████ █████████ █████████
█████ ████ ████ ████████
███ █████████ ██████ █████ ██ ███ ██
███ ██████ ██████████████████████ █████ ██ ██████████ ███████
██████ ██ █████ ██ ███ ███████ ████████████ ███ ████████ █████ ███ █████ ██ ███ █████ ██ ████████ ██
██ ███ ██
██████████ ██████
checkbox_component.rb
█ ██████████████████████ ████
█████ █████████████████ █ ███████████████████
███████████ ██████ ███████████ ██████ ███████ █████████ ███████
█████████████ ██████████ ██████████ ██████
███ ███████████
█████ ████
██████████ ████
█████ ████
checkbox_component.html.erb
████ ███████████████ ████ █████████████
████ ███████████ ███ ██████████████
██ ██ ██████████ ██
███ ███████████████ ███████████
█ ████████ █████████ █████████ ██████████ ██████ █████████████████ ███ ████████ ██
███████
███ ██
██ ████ ██
██████
███████████████
Changelog
- Initial release with form builder and standalone modes
- Support for description text
- 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