Sha256: ebb8edef9f12d4d32d2d855c8059b55701de3856e85f1f48533d323eb935c741

Contents?: true

Size: 647 Bytes

Versions: 113

Compression:

Stored size: 647 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PbTitle
    class Title
      include Playbook::Props

      partial "pb_title/title"

      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

113 entries across 113 versions & 1 rubygems

Version Path
playbook_ui-7.14.0.pre.alpha1 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-7.16.0 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-7.15.1 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-7.15.0 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-7.14.0 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-7.13.0.pre.alpha1 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-7.13.0 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-7.12.1 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-7.12.0 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-7.11.1 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-7.11.0 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-7.11.0.pre.alpha1 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-7.10.0 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-7.9.0 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-7.8.4 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-7.8.3 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-7.8.2 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-7.8.1 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-7.8.0 app/pb_kits/playbook/pb_title/title.rb
playbook_ui-7.7.0.pre.alpha1 app/pb_kits/playbook/pb_title/title.rb