Inputs are used to allow users to provide text input when the expected input is short. As well as plain text, Input supports various types of text, including passwords and numbers.
<nord-input label="Label" value="Value"></nord-input>
|The type of the input.|
|Label for the input.|
|Optional hint text to be displayed with the input. Alternatively use the hint slot.|
|Visually hide the label, but still show it to assistive technologies like screen readers.|
|Placeholder text to display within the input.|
|Optional error to be shown with the input. Alternatively use the error slot.|
|Determines whether the input is required or not. An input marked as required will be announced as such to users of assistive technology. When using this property you need to also set “novalidate” attribute on a form element to prevent browser from displaying its own validation errors.|
|Controls whether the input expands to fill the width of its container.|
|Makes the input component disabled. This prevents users from being able to interact with the component, and conveys its inactive state to assistive technologies.|
|The name of the input component.|
|The value of the input component.|
|Fired as the user types into the input.|
|Fired whenever the input's value is changed via user interaction.|
focus(options?: FocusOptions) => void
Programmatically move focus to the component
- An object which controls aspects of the focusing process.
blur() => void
Programmatically remove focus from the component.
click() => void
Programmatically simulates a click on the component.
|Use when a label requires more than plain text.|
|Optional slot that holds hint text for the input.|
|Optional slot that holds error text for the input.|
|Optional slot that holds an icon for the input.|
If you experience any issues while using Nord Web Components, please head over to the Support page for more guidelines and ways to contact us.