Sha256: 2bccbbf2a4f91f8898b3c6def7c2978ca230207d66372f1d38a249fe3af9303d

Contents?: true

Size: 604 Bytes

Versions: 127

Compression:

Stored size: 604 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PbTitle
    class Title < Playbook::KitBase
      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

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

Version data entries

127 entries across 127 versions & 1 rubygems

Version Path
playbook_ui-10.18.2 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-10.18.1 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-10.18.0 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-10.17.0 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-10.16.0 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-10.15.1 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-10.15.1.pre.alpha.rubocop.deps app/pb_kits/playbook/pb_title/title.rb
playbook_ui-10.15.0 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-10.14.1.pre.alpha2 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-10.14.1.pre.alpha1 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-10.14.0 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-10.13.1 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-10.13.0 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-10.13.0.pre.node.update app/pb_kits/playbook/pb_title/title.rb
playbook_ui-10.12.0 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-10.11.0 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-10.10.0 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-10.9.0 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-10.8.1.pre.alpha.flexdeps app/pb_kits/playbook/pb_title/title.rb
playbook_ui-10.9.0.pre.alpha1 app/pb_kits/playbook/pb_title/title.rb