Inputs capture single-line text values with support for states and helper content.
Standard input for short, single-line data entry
Contains: Default, Success, Error, Warning
Leading icon and optional trailing action icon
Trailing action with icon button.
Supports text and password types
Inputs can be marked optional or disabled
Optional
Inputs can show a character counter and enforce max length
Use hint for tooltips and helper text for guidance
Import the input component in your module or component:
import-input.ts
Copy code
Here is a basic example of using the input component:
input-example.html
Here is an example of using the input component with all available APIs:
Handle changes, blur commits, and trailing action clicks:
input-events.html
input-events.ts
Customize the input features in this section
example.html
On this page