Class: UiComponents::DaisyUi::DataDisplay::KbdComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- UiComponents::DaisyUi::DataDisplay::KbdComponent
- Defined in:
- app/components/ui_components/daisy_ui/data_display/kbd_component.rb
Constant Summary collapse
- CSS_CLASSES_DEFAULT =
%w[kbd].freeze
- CSS_CLASSES_VARIANTS =
(SIZES.map { |key| "kbd-#{key}" }).freeze
- CSS_CLASSES =
(CSS_CLASSES_DEFAULT + CSS_CLASSES_VARIANTS).freeze
Constants inherited from BaseComponent
BaseComponent::ALIGNS, BaseComponent::AXES, BaseComponent::COLORS, BaseComponent::KINDS, BaseComponent::SIZES
Instance Attribute Summary
Attributes inherited from BaseComponent
Instance Method Summary collapse
-
#initialize(size: nil, **args) ⇒ KbdComponent
constructor
A new instance of KbdComponent.
Methods inherited from BaseComponent
Constructor Details
#initialize(size: nil, **args) ⇒ KbdComponent
Returns a new instance of KbdComponent.
15 16 17 18 19 20 21 22 |
# File 'app/components/ui_components/daisy_ui/data_display/kbd_component.rb', line 15 def initialize( size: nil, **args ) @size = size super(**args) end |