Sha256: 808116b20c901f32cc54b73d6ec15c986f5303ec448f2f3235940c68562dc17c

Contents?: true

Size: 430 Bytes

Versions: 7

Compression:

Stored size: 430 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
primer_view_components-0.0.104 previews/primer/alpha/hidden_text_expander_preview.rb
primer_view_components-0.0.103 previews/primer/alpha/hidden_text_expander_preview.rb
primer_view_components-0.0.102 previews/primer/alpha/hidden_text_expander_preview.rb
primer_view_components-0.0.101 previews/primer/alpha/hidden_text_expander_preview.rb
primer_view_components-0.0.100 previews/primer/alpha/hidden_text_expander_preview.rb
primer_view_components-0.0.99 previews/primer/alpha/hidden_text_expander_preview.rb
primer_view_components-0.0.98 previews/primer/alpha/hidden_text_expander_preview.rb