Sha256: 869469d61c2ee96cc45dcde56c326492965f086f002fe981b835dc8a467fce76

Contents?: true

Size: 865 Bytes

Versions: 73

Compression:

Stored size: 865 Bytes

Contents

# frozen_string_literal: true

module Olivander
  module Components
    class SmallBoxComponent < ViewComponent::Base
      def initialize(
        background: 'bg-danger',
        primary_text: 'Loading...',
        secondary_text: "&nbsp;".html_safe,
        icon: 'fas fa-sync-alt fa-spin',
        more_link: nil,
        more_text: '',
        more_icon: 'fas fa-arrow-circle-right',
        turbo_frame: nil,
        loading: true,
        src: nil,
        overlay: 'dark'
        )
        super
        @background = background
        @primary_text = primary_text
        @secondary_text = secondary_text
        @icon = icon
        @more_link = more_link
        @more_text = more_text
        @more_icon = more_icon
        @turbo_frame = turbo_frame
        @loading = loading
        @src = src
        @overlay = overlay
      end
    end
  end
end

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
five-two-nw-olivander-0.1.2.40 app/components/olivander/components/small_box_component.rb
five-two-nw-olivander-0.1.2.39 app/components/olivander/components/small_box_component.rb
five-two-nw-olivander-0.1.2.38 app/components/olivander/components/small_box_component.rb
five-two-nw-olivander-0.1.2.37 app/components/olivander/components/small_box_component.rb
five-two-nw-olivander-0.1.2.36 app/components/olivander/components/small_box_component.rb
five-two-nw-olivander-0.1.2.35 app/components/olivander/components/small_box_component.rb
five-two-nw-olivander-0.1.2.34 app/components/olivander/components/small_box_component.rb
five-two-nw-olivander-0.1.2.33 app/components/olivander/components/small_box_component.rb
five-two-nw-olivander-0.1.2.32 app/components/olivander/components/small_box_component.rb
five-two-nw-olivander-0.1.2.31 app/components/olivander/components/small_box_component.rb
five-two-nw-olivander-0.1.2.30 app/components/olivander/components/small_box_component.rb
five-two-nw-olivander-0.1.2.29 app/components/olivander/components/small_box_component.rb
five-two-nw-olivander-0.1.2.28 app/components/olivander/components/small_box_component.rb