Sha256: 2df79af11142b4ebfc9779acb5485c4a8f5164236f398aad6dd5c138fabaf81d

Contents?: true

Size: 554 Bytes

Versions: 7

Compression:

Stored size: 554 Bytes

Contents

# frozen_string_literal: true

module Primer
  # @label StateComponent
  class StateComponentPreview < ViewComponent::Preview
    # @label Default Options
    #
    # @param title [String]
    # @param tag [Symbol] select [span, div]
    # @param size [Symbol] select [default, small]
    # @param scheme [Symbol] select [default, open, closed, merged]
    def default(title: "State", scheme: :default, size: :default, tag: :span)
      render(Primer::StateComponent.new(title: title, scheme: scheme, size: size, tag: tag)) { "State" }
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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