Sha256: e0fecd6d58f62bd5daaa5a584e8c9f7ba052d6d4e6d20a4e2307a6b02366222c

Contents?: true

Size: 823 Bytes

Versions: 79

Compression:

Stored size: 823 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, type: Playbook::Props::Enum,
                     values: [nil, "link"],
                     default: nil,
                     deprecated: true

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

Version data entries

79 entries across 79 versions & 1 rubygems

Version Path
playbook_ui-11.1.2.pre.alpha1 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-11.1.1 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-11.1.1.pre.alpha1 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-11.1.0 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-11.0.1 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-11.0.0 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-11.0.0.pre.alpha.2 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-11.0.0.pre.alpha.1 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-10.26.1 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-10.27.0.pre.lazysizes1 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-10.27.0.pre.datepicker1 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-10.26.0 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-10.26.0.pre.alpha5 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-10.26.0.pre.rc1 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-10.26.0.pre.alpha.sticky1 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-10.26.0.pre.alpha.display1 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-10.26.0.pre.alpha3 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-10.25.1 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-10.26.0.pre.alpha1 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-10.25.0 app/pb_kits/playbook/pb_title/title.rb