Sha256: 307806b5a24ff6da71adf8a58db9521aaab61e1853e77eb43d96d96c9a2f10bd

Contents?: true

Size: 323 Bytes

Versions: 13

Compression:

Stored size: 323 Bytes

Contents

module Lookbook
  class DimensionsDisplay::Component < Lookbook::BaseComponent
    def initialize(target:, **html_attrs)
      @target = target
      super(**html_attrs)
    end

    protected

    def alpine_data
      @target.to_json
    end

    def alpine_component
      "dimensionsDisplayComponent"
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
lookbook-1.0.3 app/components/lookbook/dimensions_display/component.rb
lookbook-1.0.2 app/components/lookbook/dimensions_display/component.rb
lookbook-1.0.1 app/components/lookbook/dimensions_display/component.rb
lookbook-1.0.0 app/components/lookbook/dimensions_display/component.rb
lookbook-1.0.0.rc.3 app/components/lookbook/dimensions_display/component.rb
lookbook-1.0.0.rc.2 app/components/lookbook/dimensions_display/component.rb
lookbook-1.0.0.rc.1 app/components/lookbook/dimensions_display/component.rb
lookbook-1.0.0.beta.8 app/components/lookbook/dimensions_display/component.rb
lookbook-1.0.0.beta.7 app/components/lookbook/dimensions_display/component.rb
lookbook-1.0.0.beta.6 app/components/lookbook/dimensions_display/component.rb
lookbook-1.0.0.beta.5 app/components/lookbook/dimensions_display/component.rb
lookbook-1.0.0.beta.4 app/components/lookbook/dimensions_display/component.rb
lookbook-1.0.0.beta.3 app/components/lookbook/dimensions_display/component.rb