Sha256: 28d9c59731a970bdf15a0165857097cbf3477d35eb1ecdb4e50c9e0aaba05313

Contents?: true

Size: 417 Bytes

Versions: 7

Compression:

Stored size: 417 Bytes

Contents

# frozen_string_literal: true

module Primer
  # @label OcticonComponent
  class OcticonComponentPreview < ViewComponent::Preview
    # @label Default Options
    #
    # @param aria_label [String]
    # @param size [Symbol] select [xsmall, small, medium]
    def default(size: :small, aria_label: nil)
      render(Primer::OcticonComponent.new(icon: :people, size: size, "aria-label": aria_label))
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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