<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 thelabelslot for consistent styling - Match the
disabledstate to the corresponding input - Use a
<label>element with aforattribute 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