Sha256: c3709905aebbe8b3de6bfccb4ed52f80c603ef9c7e86087d45b1c1ba3cc85908
Contents?: true
Size: 750 Bytes
Versions: 13
Compression:
Stored size: 750 Bytes
Contents
# frozen_string_literal: true module Playbook module PbFormPill class FormPill < Playbook::KitBase prop :avatar_url prop :name prop :text prop :size prop :text_transform, type: Playbook::Props::Enum, values: %w[none lowercase], default: "none" prop :color, type: Playbook::Props::Enum, values: %w[primary neutral], default: "primary" prop :tabindex def classname generate_classname("pb_form_pill_kit", color, name, text, text_transform) end def display_text object.text end def size_class size == "small" ? " small" : "" end end end end
Version data entries
13 entries across 13 versions & 1 rubygems