Sha256: 64d1e0e6a32186a3381aa4951c9eeb90dda3500a007ffeb92f84353b413c1680

Contents?: true

Size: 535 Bytes

Versions: 19

Compression:

Stored size: 535 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PbCaption
    class Caption
      include Playbook::Props

      partial "pb_caption/caption"

      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

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

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
playbook_ui-7.0.1.pre.alpha8 app/pb_kits/playbook/pb_caption/caption.rb
playbook_ui-7.0.1.pre.alpha7 app/pb_kits/playbook/pb_caption/caption.rb
playbook_ui-7.0.1.pre.alpha6 app/pb_kits/playbook/pb_caption/caption.rb
playbook_ui-7.0.1.pre.alpha5 app/pb_kits/playbook/pb_caption/caption.rb
playbook_ui-7.0.1.pre.alpha4 app/pb_kits/playbook/pb_caption/caption.rb
playbook_ui-7.0.1.pre.alpha3 app/pb_kits/playbook/pb_caption/caption.rb
playbook_ui-7.0.1.pre.alpha2 app/pb_kits/playbook/pb_caption/caption.rb
playbook_ui-7.0.1.pre.alpha1 app/pb_kits/playbook/pb_caption/caption.rb
playbook_ui-6.3.1 app/pb_kits/playbook/pb_caption/caption.rb
playbook_ui-6.3.0 app/pb_kits/playbook/pb_caption/caption.rb
playbook_ui-6.2.1 app/pb_kits/playbook/pb_caption/caption.rb
playbook_ui-6.2.0 app/pb_kits/playbook/pb_caption/caption.rb
playbook_ui-7.0.0.pre.alpha1 app/pb_kits/playbook/pb_caption/caption.rb
playbook_ui-6.1.0.pre.alpha5 app/pb_kits/playbook/pb_caption/caption.rb
playbook_ui-6.1.0.pre.alpha4 app/pb_kits/playbook/pb_caption/caption.rb
playbook_ui-6.1.0.pre.alpha3 app/pb_kits/playbook/pb_caption/caption.rb
playbook_ui-6.1.0.pre.alpha2 app/pb_kits/playbook/pb_caption/caption.rb
playbook_ui-6.1.0.pre.alpha1 app/pb_kits/playbook/pb_caption/caption.rb
playbook_ui-6.1.0 app/pb_kits/playbook/pb_caption/caption.rb