Class: JetUi::Modal::Component

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/jet_ui/modal/component.rb

Constant Summary collapse

SIZES =
%w[sm md lg xl 2xl 3xl 4xl 5xl 6xl].freeze
DEFAULT_SIZE =
'2xl'

Instance Method Summary collapse

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/modal/component.rb', line 9

def initialize(title: nil, subtitle: nil, size: DEFAULT_SIZE, id: nil)
  @title = title
  @subtitle = subtitle
  @size = size
  @id = id
end