Skip to content

Input Text

A standalone Angular component over a native input, with a complete Form Field, icons, validation, and ControlValueAccessor.

Design

Functional preview

Running with the native Angular component and HTML input + Angular Forms.

Loading functional preview…

Anatomy

4
1 2 3
Please enter a valid email. 5
We'll never share your email. 6
1 Wrapper (.ds-input) — container with border, radius, background, padding and gap.
2 Icon (optional, .ds-input__icon) — 24px frame; 16/20/24px ícone in sm/md/lg.
3 Field (.ds-input__field) — the native <input> element.
4 Label (.ds-field__label) — external, via Form Field.
5 Error message (.ds-field__error) — external, via Form Field.
6 Helper text (.ds-field__helper) — external, via Form Field.

Default

Helper text

Sizes

With Icon

States

In Figma, State only represents exclusive visual states: Default, Hover, Focus, and Disabled. Filled, Error, and Read-only are separate properties; Error combines with Default/Hover/Focus, and Read-only combines with Default/Focus.

Error

Please enter a valid email address.

Disabled

Readonly

Figma propertyValue / CSS triggerVisual changeToken
StateDefaultNeutral surface and bordercomponent.field.bg.default, component.field.border-color.default
StateHover / :hoverDarker bordercomponent.field.border-color.hover
StateFocus / :focus-within2px outline ring, component radiuscomponent.field.border-color.focus, component.focus-ring.*, component.input.focus-ring.radius.default
StateDisabled / [disabled] or .ds-input--disabledMuted bg, border and contentcomponent.field.bg.disabled, component.field.value.color.disabled
ErrorTrue / .ds-input--error or .ds-field--error .ds-inputRed border and error focus ringcomponent.field.border-color.error, component.focus-ring.color.error
Error + StateTrue + Hover / .ds-input--error:hoverDarker red bordercomponent.field.border-color.error-hover
Read-onlyTrue / [readonly] or .ds-input--readonlyReadonly bg with neutral focus ringcomponent.field.bg.readonly, component.focus-ring.color.readonly

With Form Field

Enter your first and last name.
Please enter a valid email address. We'll never share your email.

Figma properties

PropertyTypeDefaultDescription
Show LabelBooleantrueShows or hides the label row (including required asterisk)
LabelText"Rótulo"Label text (label/md)
RequiredBooleanfalseShows * in feedback/error/content/default next to the label
Show Helper TextBooleantrueShows or hides the helper text below the control
Helper TextText"Texto auxiliar"Caption/sm annotation (content/secondary)