Skip to main content

<primer-input-label>

Provides consistent label styling for input fields. Used internally by card inputs and available for custom fields.

Quick Reference


Examples

With Input Wrapper

Disabled


Properties


CSS Properties


States


Usage Guidelines

Do

  • Use inside <primer-input-wrapper> in the label slot for consistent styling
  • Match the disabled state to the corresponding input
  • Use a <label> element with a for attribute when wrapping native inputs for accessibility

Don’t

  • Don’t use outside of the wrapper context unless you need standalone label styling
  • Don’t duplicate labels — one label per input

Content Guidelines

Label text

Formatting


See also

primer-input-wrapper

Parent wrapper

primer-card-form

Card form container