Sha256: 7bc440921c8ba1154a2afeb9055d19cbc41aa76a4fdae3b5ac08ad430e0f6f43
Contents?: true
Size: 839 Bytes
Versions: 48
Compression:
Stored size: 839 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 prop :icon def classname generate_classname("pb_form_pill_kit", color, icon_class, name, text, text_transform) end def display_text object.text end def size_class size == "small" ? " small" : "" end def icon_class icon ? "icon" : nil end end end end
Version data entries
48 entries across 48 versions & 1 rubygems