class Primer::Beta::Label

Use ‘aria-label` if the `Label` or the context around it don’t explain the label.
@accessibility
Use ‘Label` to add contextual metadata to a design.

def call

def call
  render(Primer::BaseComponent.new(**@system_arguments)) { content }
end

def initialize(tag: DEFAULT_TAG, scheme: DEFAULT_SCHEME, size: DEFAULT_SIZE, inline: false, variant: DEFAULT_VARIANT, **system_arguments)

def initialize(tag: DEFAULT_TAG, scheme: DEFAULT_SCHEME, size: DEFAULT_SIZE, inline: false, variant: DEFAULT_VARIANT, **system_arguments)
  @system_arguments = system_arguments
  @variant = fetch_or_fallback(VARIANT_OPTIONS, variant, nil, deprecated_values: DEPRECATED_VARIANT_OPTIONS)
  @scheme = fetch_or_fallback(SCHEME_OPTIONS, scheme, DEFAULT_SCHEME, deprecated_values: DEPRECATED_SCHEME_OPTIONS)
  @size = fetch_or_fallback(SIZE_OPTIONS, size, DEFAULT_SIZE)
  @size = :large if @variant == :large
  @inline = inline || @variant == :inline
  @system_arguments[:tag] = fetch_or_fallback(TAG_OPTIONS, tag, DEFAULT_TAG)
  @system_arguments[:classes] = class_names(
    "Label",
    system_arguments[:classes],
    SCHEME_MAPPINGS[@scheme],
    SIZE_MAPPINGS[@size],
    @inline ? INLINE_CLASS : nil
  )
end