Sha256: 94296c7e896dd603a8504220d96478f614ed2eecc83d4510db42196d913b027b

Contents?: true

Size: 785 Bytes

Versions: 59

Compression:

Stored size: 785 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PbButtonToolbar
    class ButtonToolbar
      include Playbook::Props

      partial "pb_button_toolbar/button_toolbar"

      prop :connected, type: Playbook::Props::Boolean, default: false

      prop :orientation, type: Playbook::Props::Enum,
                         values: %w[horizontal vertical],
                         default: "horizontal"
      prop :variant, type: Playbook::Props::Enum,
                     values: %w[primary secondary],
                     default: "primary"
      prop :text

      def classname
        generate_classname("pb_button_toolbar_kit", orientation, variant)
      end

    private

      def connected_class
        connected == true ? "connected" : nil
      end
    end
  end
end

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
playbook_ui-7.14.0.pre.alpha1 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-7.16.0 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-7.15.1 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-7.15.0 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-7.14.0 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-7.13.0.pre.alpha1 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-7.13.0 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-7.12.1 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-7.12.0 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-7.11.1 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-7.11.0 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-7.11.0.pre.alpha1 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-7.10.0 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-7.9.0 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-7.8.4 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-7.8.3 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-7.8.2 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-7.8.1 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-7.8.0 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb
playbook_ui-7.7.0.pre.alpha1 app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb