Text Field
A versatile text input component with label, hint text, and error states. Supports both form builder mode (with Rails form objects) and standalone usage. Includes sizes, required/disabled states, and automatic error detection from form objects.
Preview & Code
_text_field.html.erb
███
████ █████ █████████ █████████
█████ ████ ████ ████████
███ █████████ ██████ █████ ██ ███ ██
███ ██████ ████████████████████████ █████ ██ ██████████ ███████ █████ ██████ █████ █████ ████ ██████ ██
██ ███ ██
██████████ ██████
███ ██████ ████████████████████████ █████ █████████ ████████████ ███████████ ██
text_field_component.html.erb
████ ███████████████
██ ██ ███████████████ ██
██████ ████████ ████████ ███ ██████████ █████████████ ████
███ ██████ ██
██ ██ █████████ ██
█████ ███████████████████ ████████████████
██ ███ ██
████████
██ ███ ██
text_field_component.rb
█ ██████████████████████ ████
█████ ██████████████████ █ ███████████████████
█████ █ █████ ██ ██████████
███████████ █ ███████ █████ ████████ ███ ███ ██████ ██████████████
███████████ ██████ ███████████ ██████ ███████ ███████ ██████ ██████
█████████████ ██████████ ██████████ ██████ ██████
███ ███████████
Changelog
- Initial release with form builder and standalone modes
- Three size options: sm, md (default), lg
- 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