Sha256: 1884c0afb4d62861cfbda7d8ee438aaa58ecbf40b84c6758edd963444b596a5f

Contents?: true

Size: 775 Bytes

Versions: 125

Compression:

Stored size: 775 Bytes

Contents

# frozen_string_literal: true

module Primer
  module Alpha
    # @label HellipButton
    class HellipButtonPreview < ViewComponent::Preview
      # @label Default Options
      #
      # @param aria_label [String]
      # @param inline [Boolean]
      # @snapshot
      def default(inline: false, aria_label: "No effect")
        render(Primer::Alpha::HellipButton.new(inline: inline, "aria-label": aria_label))
      end

      # @label Playground
      #
      # @param aria_label [String]
      # @param inline [Boolean]
      # @param disabled [Boolean]
      def playground(inline: false, aria_label: "No effect", disabled: false)
        render(Primer::Alpha::HellipButton.new(inline: inline, "aria-label": aria_label, disabled: disabled))
      end
    end
  end
end

Version data entries

125 entries across 125 versions & 2 rubygems

Version Path
primer_view_components-0.30.0 previews/primer/alpha/hellip_button_preview.rb
openproject-primer_view_components-0.39.1 previews/primer/alpha/hellip_button_preview.rb
openproject-primer_view_components-0.39.0 previews/primer/alpha/hellip_button_preview.rb
openproject-primer_view_components-0.38.0 previews/primer/alpha/hellip_button_preview.rb
primer_view_components-0.29.0 previews/primer/alpha/hellip_button_preview.rb
primer_view_components-0.28.0 previews/primer/alpha/hellip_button_preview.rb
openproject-primer_view_components-0.37.1 previews/primer/alpha/hellip_button_preview.rb
openproject-primer_view_components-0.37.0 previews/primer/alpha/hellip_button_preview.rb
openproject-primer_view_components-0.36.2 previews/primer/alpha/hellip_button_preview.rb
openproject-primer_view_components-0.36.1 previews/primer/alpha/hellip_button_preview.rb
openproject-primer_view_components-0.36.0 previews/primer/alpha/hellip_button_preview.rb
primer_view_components-0.27.0 previews/primer/alpha/hellip_button_preview.rb
openproject-primer_view_components-0.35.2 previews/primer/alpha/hellip_button_preview.rb
openproject-primer_view_components-0.35.1 previews/primer/alpha/hellip_button_preview.rb
primer_view_components-0.26.1 previews/primer/alpha/hellip_button_preview.rb
openproject-primer_view_components-0.35.0 previews/primer/alpha/hellip_button_preview.rb
primer_view_components-0.26.0 previews/primer/alpha/hellip_button_preview.rb
openproject-primer_view_components-0.34.0 previews/primer/alpha/hellip_button_preview.rb
openproject-primer_view_components-0.33.2 previews/primer/alpha/hellip_button_preview.rb
openproject-primer_view_components-0.33.1 previews/primer/alpha/hellip_button_preview.rb