Sha256: d540d51d76048de1b3504caff58b6e1d250b549785cc8e3d4a5438d6f18487bd

Contents?: true

Size: 706 Bytes

Versions: 112

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

112 entries across 112 versions & 2 rubygems

Version Path
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
openproject-primer_view_components-0.48.0 previews/primer/alpha/hidden_text_expander_preview.rb
openproject-primer_view_components-0.47.1 previews/primer/alpha/hidden_text_expander_preview.rb
openproject-primer_view_components-0.47.0 previews/primer/alpha/hidden_text_expander_preview.rb
primer_view_components-0.34.0 previews/primer/alpha/hidden_text_expander_preview.rb
openproject-primer_view_components-0.46.1 previews/primer/alpha/hidden_text_expander_preview.rb
openproject-primer_view_components-0.46.0 previews/primer/alpha/hidden_text_expander_preview.rb
openproject-primer_view_components-0.45.0 previews/primer/alpha/hidden_text_expander_preview.rb
openproject-primer_view_components-0.44.3 previews/primer/alpha/hidden_text_expander_preview.rb
openproject-primer_view_components-0.44.2 previews/primer/alpha/hidden_text_expander_preview.rb
openproject-primer_view_components-0.44.1 previews/primer/alpha/hidden_text_expander_preview.rb
primer_view_components-0.33.0 previews/primer/alpha/hidden_text_expander_preview.rb
openproject-primer_view_components-0.44.0 previews/primer/alpha/hidden_text_expander_preview.rb
openproject-primer_view_components-0.43.1 previews/primer/alpha/hidden_text_expander_preview.rb