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
primer_view_components-0.36.5 previews/primer/alpha/hidden_text_expander_preview.rb
openproject-primer_view_components-0.52.2 previews/primer/alpha/hidden_text_expander_preview.rb
primer_view_components-0.36.4 previews/primer/alpha/hidden_text_expander_preview.rb
openproject-primer_view_components-0.52.1 previews/primer/alpha/hidden_text_expander_preview.rb
openproject-primer_view_components-0.52.0 previews/primer/alpha/hidden_text_expander_preview.rb
primer_view_components-0.36.3 previews/primer/alpha/hidden_text_expander_preview.rb
openproject-primer_view_components-0.51.0 previews/primer/alpha/hidden_text_expander_preview.rb
primer_view_components-0.36.2 previews/primer/alpha/hidden_text_expander_preview.rb
openproject-primer_view_components-0.50.1 previews/primer/alpha/hidden_text_expander_preview.rb
openproject-primer_view_components-0.50.0 previews/primer/alpha/hidden_text_expander_preview.rb
primer_view_components-0.36.1 previews/primer/alpha/hidden_text_expander_preview.rb
primer_view_components-0.36.0 previews/primer/alpha/hidden_text_expander_preview.rb
openproject-primer_view_components-0.49.2 previews/primer/alpha/hidden_text_expander_preview.rb
primer_view_components-0.35.2 previews/primer/alpha/hidden_text_expander_preview.rb
openproject-primer_view_components-0.49.1 previews/primer/alpha/hidden_text_expander_preview.rb
openproject-primer_view_components-0.49.0 previews/primer/alpha/hidden_text_expander_preview.rb
primer_view_components-0.35.1 previews/primer/alpha/hidden_text_expander_preview.rb
primer_view_components-0.35.0 previews/primer/alpha/hidden_text_expander_preview.rb
openproject-primer_view_components-0.48.2 previews/primer/alpha/hidden_text_expander_preview.rb
openproject-primer_view_components-0.48.1 previews/primer/alpha/hidden_text_expander_preview.rb