<primer-input-wrapper>
Provides consistent styling and structure for input fields. Used internally by card inputs and available for custom fields to match Primer’s visual style.Quick Reference
Examples
Basic Custom Field
With Card Form
Error State
Slots
CSS Properties
Spacing
Border
Background
States
Usage Guidelines
Do
- Use for custom fields that should match card input styling
- Apply
has-errorattribute for validation errors
Don’t
- Don’t use for card inputs (they handle their own wrappers)
Content Guidelines
help-text slot
Error message placement
See also
primer-input-label
Label component
primer-card-form
Card form container