Sha256: 6e79b5a7c46dc94c2bc20fca49844ded2c119432bfd178daa11431f5eaa9f251

Contents?: true

Size: 625 Bytes

Versions: 18

Compression:

Stored size: 625 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PbCaption
    class Caption < Playbook::KitBase
      prop :size, type: Playbook::Props::Enum,
                  values: %w[xs sm md base lg xl],
                  default: "md"
      prop :tag, type: Playbook::Props::Enum,
                 values: %w[h1 h2 h3 h4 h5 h6 p span div],
                 default: "div"
      prop :text
      prop :variant, type: Playbook::Props::Enum,
                     values: [nil, "link"],
                     default: nil

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

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
playbook_ui-8.1.3 app/pb_kits/playbook/pb_caption/caption.rb
playbook_ui-8.1.2 app/pb_kits/playbook/pb_caption/caption.rb
playbook_ui-8.0.3 app/pb_kits/playbook/pb_caption/caption.rb
playbook_ui-8.2.0.pre.alpha2 app/pb_kits/playbook/pb_caption/caption.rb
playbook_ui-8.1.1 app/pb_kits/playbook/pb_caption/caption.rb
playbook_ui-8.0.2 app/pb_kits/playbook/pb_caption/caption.rb
playbook_ui-8.2.0.pre.alpha1 app/pb_kits/playbook/pb_caption/caption.rb
playbook_ui-8.1.0 app/pb_kits/playbook/pb_caption/caption.rb
playbook_ui-8.0.1 app/pb_kits/playbook/pb_caption/caption.rb
playbook_ui-8.0.0 app/pb_kits/playbook/pb_caption/caption.rb
playbook_ui-8.0.0.pre.alpha5 app/pb_kits/playbook/pb_caption/caption.rb
playbook_ui-8.0.0.pre.alpha4 app/pb_kits/playbook/pb_caption/caption.rb
playbook_ui-8.0.0.pre.alpha1 app/pb_kits/playbook/pb_caption/caption.rb
playbook_ui-7.16.0.pre.alpha5 app/pb_kits/playbook/pb_caption/caption.rb
playbook_ui-7.16.0.pre.alpha4 app/pb_kits/playbook/pb_caption/caption.rb
playbook_ui-7.16.0.pre.alpha3 app/pb_kits/playbook/pb_caption/caption.rb
playbook_ui-7.16.0.pre.alpha2 app/pb_kits/playbook/pb_caption/caption.rb
playbook_ui-7.16.0.pre.alpha1 app/pb_kits/playbook/pb_caption/caption.rb