Sha256: d540d51d76048de1b3504caff58b6e1d250b549785cc8e3d4a5438d6f18487bd

Contents?: true

Size: 706 Bytes

Versions: 125

Compression:

Stored size: 706 Bytes

Contents

# frozen_string_literal: true

module Primer
  module Alpha
    # @label HiddenTextExpander
    class HiddenTextExpanderPreview < ViewComponent::Preview
      # @label Playground
      # @param label [String] text
      # @param inline [Boolean] toggle
      def playground(label: "No effect", inline: false)
        render(Primer::Alpha::HiddenTextExpander.new(inline: inline, "aria-label": label))
      end

      # @label Default options
      # @param label [String] text
      # @param inline [Boolean] toggle
      # @snapshot
      def default(label: "No effect", inline: false)
        render(Primer::Alpha::HiddenTextExpander.new(inline: inline, "aria-label": label))
      end
    end
  end
end

Version data entries

125 entries across 125 versions & 2 rubygems

Version Path
openproject-primer_view_components-0.6.3 previews/primer/alpha/hidden_text_expander_preview.rb
primer_view_components-0.6.0 previews/primer/alpha/hidden_text_expander_preview.rb
primer_view_components-0.5.1 previews/primer/alpha/hidden_text_expander_preview.rb
primer_view_components-0.5.0 previews/primer/alpha/hidden_text_expander_preview.rb
primer_view_components-0.4.0 previews/primer/alpha/hidden_text_expander_preview.rb