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