Sha256: 53236237f35ef6b754f7600af8a898f8962fbe1c77ab5170c900d637907b651a

Contents?: true

Size: 685 Bytes

Versions: 3

Compression:

Stored size: 685 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PbTitle
    class Title < Playbook::KitBase
      prop :color, type: Playbook::Props::Enum,
                   values: [nil, "default", "light", "lighter", "success", "error", "link"],
                   default: nil
      prop :size, type: Playbook::Props::Enum,
                  values: [1, 2, 3, 4],
                  default: 3
      prop :tag, type: Playbook::Props::Enum,
                 values: %w[h1 h2 h3 h4 h5 h6 p div span],
                 default: "h3"
      prop :text
      prop :variant, deprecated: true

      def classname
        generate_classname("pb_title_kit", size, color)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
playbook_ui-10.19.0 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-10.19.0.pre.lightbox app/pb_kits/playbook/pb_title/title.rb
playbook_ui-10.19.0.pre.popover.alpha1 app/pb_kits/playbook/pb_title/title.rb