Sha256: 71f8bc25323d596b583921c257a3dff5f42bc62edec76989a31ec08be48ad904

Contents?: true

Size: 319 Bytes

Versions: 3

Compression:

Stored size: 319 Bytes

Contents

module Lookbook
  class DimensionsDisplay::Component < Lookbook::Component
    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

3 entries across 3 versions & 1 rubygems

Version Path
lookbook-1.0.0.beta.2 app/components/lookbook/dimensions_display/component.rb
lookbook-1.0.0.beta.1 app/components/lookbook/dimensions_display/component.rb
lookbook-1.0.0.beta.0 app/components/lookbook/dimensions_display/component.rb