Sha256: 572a172d8630578c1d9205b2491503eb178d898d256b286ef2952cc528f3bcff

Contents?: true

Size: 451 Bytes

Versions: 28

Compression:

Stored size: 451 Bytes

Contents

module Lookbook
  class Viewport::Component < Lookbook::BaseComponent
    def initialize(src:, resize_height: true, resize_width: true, max_height: nil, iframe_id: nil, **html_attrs)
      @src = src
      @resize_height = resize_height
      @resize_width = resize_width
      @max_height = max_height
      @iframe_id = iframe_id
      super(**html_attrs)
    end

    protected

    def alpine_component
      "viewportComponent"
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
lookbook-2.3.4 app/components/lookbook/viewport/component.rb
lookbook-2.3.3 app/components/lookbook/viewport/component.rb
lookbook-2.3.2 app/components/lookbook/viewport/component.rb
lookbook-2.3.0 app/components/lookbook/viewport/component.rb
lookbook-2.2.2 app/components/lookbook/viewport/component.rb
lookbook-2.2.1 app/components/lookbook/viewport/component.rb
lookbook-2.2.0 app/components/lookbook/viewport/component.rb
lookbook-2.1.1 app/components/lookbook/viewport/component.rb
lookbook-2.1.0 app/components/lookbook/viewport/component.rb
lookbook-2.0.5 app/components/lookbook/viewport/component.rb
lookbook-2.0.4 app/components/lookbook/viewport/component.rb
lookbook-2.0.3 app/components/lookbook/viewport/component.rb
lookbook-2.0.2 app/components/lookbook/viewport/component.rb
lookbook-2.0.1 app/components/lookbook/viewport/component.rb
lookbook-2.0.0 app/components/lookbook/viewport/component.rb
lookbook-2.0.0.rc.3 app/components/lookbook/viewport/component.rb
lookbook-2.0.0.rc.2 app/components/lookbook/viewport/component.rb
lookbook-2.0.0.rc.1 app/components/lookbook/viewport/component.rb
lookbook-2.0.0.beta.9 app/components/lookbook/viewport/component.rb
lookbook-2.0.0.beta.8 app/components/lookbook/viewport/component.rb