Class: Avo::Fields::Common::BooleanCheckComponent
- Inherits:
-
BaseComponent
- Object
- BaseComponent
- Avo::Fields::Common::BooleanCheckComponent
- Defined in:
- app/components/avo/fields/common/boolean_check_component.rb
Instance Method Summary collapse
Instance Method Details
#classes ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'app/components/avo/fields/common/boolean_check_component.rb', line 10 def classes helpers.class_names({ "h-5": @size == :sm, "h-6": @size == :md, "text-green-600": @checked, "text-red-600": !@checked, }) end |