Class: Embed::Component

Inherits:
Lookbook::BaseComponent
  • Object
show all
Defined in:
app/components/lookbook/embed/component.rb

Instance Method Summary collapse

Constructor Details

#initialize(id:, example:, params: {}, opts: {}, max_height: nil, **html_attrs) ⇒ Component

Returns a new instance of Component.



3
4
5
6
7
8
9
10
# File 'app/components/lookbook/embed/component.rb', line 3

def initialize(id:, example:, params: {}, opts: {}, max_height: nil, **html_attrs)
  @id = id
  @target = example
  @params = params
  @opts = opts
  @max_height = max_height
  super(**html_attrs)
end