Class: JetUi::Drawer::Component
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- JetUi::Drawer::Component
- Defined in:
- app/components/jet_ui/drawer/component.rb
Constant Summary collapse
- SIZES =
%w[sm md lg xl 2xl 3xl 4xl 5xl 6xl].freeze
- DEFAULT_SIZE =
'2xl'
Instance Method Summary collapse
-
#initialize(title: nil, subtitle: nil, size: DEFAULT_SIZE, id: nil) ⇒ Component
constructor
A new instance of Component.
Constructor Details
#initialize(title: nil, subtitle: nil, size: DEFAULT_SIZE, id: nil) ⇒ Component
Returns a new instance of Component.
9 10 11 12 13 14 |
# File 'app/components/jet_ui/drawer/component.rb', line 9 def initialize(title: nil, subtitle: nil, size: DEFAULT_SIZE, id: nil) @title = title @subtitle = subtitle @size = size @id = id end |