Formulare v1.0.0

Kontrollkästchen

Ein einzelnes Kontrollkästchen mit Beschriftung und optionalem Beschreibungstext. Unterstützt sowohl den Formularbaukasten-Modus (mit Rails-Formularobjekten) als auch eigenständige Nutzung. Enthält Fehlerzustände und deaktivierte Darstellung.

Vorschau & Code

Optionen

Name Typ Standard Beschreibung
form FormBuilder nil Rails form builder object (for form builder mode)
attribute Symbol nil Model attribute name (for form builder mode)
name String nil Input name attribute (for standalone mode)
value String "1" Value when checked
checked Boolean false Whether the checkbox is initially checked
label String nil Label text (auto-generated from attribute if not provided)
description String nil Additional description text below the label
required Boolean false Whether the field is required
disabled Boolean false Whether the field is disabled
error String nil Manual error message (auto-detected from form object if not provided)
class String "" Additional CSS classes for the checkbox

Änderungsprotokoll v1.0.0

- Initial release with form builder and standalone modes
- Support for description text
- Automatic error detection from Rails form objects
- Dark mode support

Vollzugang erhalten

Schalte den Quellcode für diese und alle anderen Komponenten frei. Einmalige Zahlung für lebenslangen Zugang.

Jetzt Zugang erhalten