Sha256: 1098bd1770faeb729f9211af5a4abb9457dd69aa318e3686904103938b3f636e
Contents?: true
Size: 652 Bytes
Versions: 54
Compression:
Stored size: 652 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 :text def classname generate_classname("pb_button_toolbar_kit", orientation, connected_class) end private def connected_class connected == true ? "connected" : nil end end end end
Version data entries
54 entries across 54 versions & 1 rubygems