Input

The input component supports various types of input, including text, numbers, passwords, etc., and can add prefix/suffix icons and text.

Usage Examples

Basic Input

The most basic input usage, suitable for most text input scenarios.

300px

Different Input Types

Use different types of input by setting the type property, such as email, password, number, date, etc.

300px

Different Sizes

Change the input size by setting the size property: sm, md (default), lg.

300px

Different States

Input supports multiple states: disabled, readonly, required, and error states.

300px

Input with Icons

Add icons before and after the input through prefix-icon and suffix-icon properties.

300px

Properties

PropertyBasic component module for translation keys shared across all component documentation pagesTypeDefault
typeInput type (text, email, password, number, etc.)stringtext
sizeInput sizestringmd
labelInput labelstring
placeholderPlaceholder textstring
disabledWhether disabledbooleanfalse
readonlyWhether readonlybooleanfalse
requiredWhether requiredbooleanfalse
errorError messagestring
prefix-iconPrefix iconstring
suffix-iconSuffix iconstring
help-textHelp textstring
Design Empowers, Innovation Unlimited