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
openproject-primer_view_components-0.48.0 previews/primer/alpha/hellip_button_preview.rb
openproject-primer_view_components-0.47.1 previews/primer/alpha/hellip_button_preview.rb
openproject-primer_view_components-0.47.0 previews/primer/alpha/hellip_button_preview.rb
primer_view_components-0.34.0 previews/primer/alpha/hellip_button_preview.rb
openproject-primer_view_components-0.46.1 previews/primer/alpha/hellip_button_preview.rb
openproject-primer_view_components-0.46.0 previews/primer/alpha/hellip_button_preview.rb
openproject-primer_view_components-0.45.0 previews/primer/alpha/hellip_button_preview.rb
openproject-primer_view_components-0.44.3 previews/primer/alpha/hellip_button_preview.rb
openproject-primer_view_components-0.44.2 previews/primer/alpha/hellip_button_preview.rb
openproject-primer_view_components-0.44.1 previews/primer/alpha/hellip_button_preview.rb
primer_view_components-0.33.0 previews/primer/alpha/hellip_button_preview.rb
openproject-primer_view_components-0.44.0 previews/primer/alpha/hellip_button_preview.rb
openproject-primer_view_components-0.43.1 previews/primer/alpha/hellip_button_preview.rb
openproject-primer_view_components-0.43.0 previews/primer/alpha/hellip_button_preview.rb
primer_view_components-0.32.0 previews/primer/alpha/hellip_button_preview.rb
openproject-primer_view_components-0.42.0 previews/primer/alpha/hellip_button_preview.rb
primer_view_components-0.31.0 previews/primer/alpha/hellip_button_preview.rb
openproject-primer_view_components-0.41.1 previews/primer/alpha/hellip_button_preview.rb
openproject-primer_view_components-0.41.0 previews/primer/alpha/hellip_button_preview.rb
openproject-primer_view_components-0.40.0 previews/primer/alpha/hellip_button_preview.rb