Sha256: 1e10f9215d8f19830a0fed75df29af5d5db6fce71fb02e027e9b5518d356a2f9

Contents?: true

Size: 368 Bytes

Versions: 24

Compression:

Stored size: 368 Bytes

Contents

module Lookbook
  class Message::Component < Lookbook::BaseComponent
    attr_reader :title, :icon_name, :icon_position, :theme

    def initialize(title: nil, icon: nil, icon_position: :left, theme: :info, **html_attrs)
      @title = title
      @icon_name = icon
      @icon_position = icon_position
      @theme = theme
      super(**html_attrs)
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

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