Form
InputText
A single-line text box whose attributes land on the native input, with prefix and suffix content and a clear button.
WAI-ARIA tested
Import
main.ts
import { InputText } from '@vitral/vue';Basic
Typed: —
Sizes, variants and states
Fluid
API
Read from packages/vue/src/components/InputText/types.ts, so it says what the component actually accepts.
Props
| Name | Type | Description |
|---|---|---|
| size | Size | — |
| variant | InputVariant | Defaults to the plugin's `inputVariant`. |
| invalid | boolean | — |
| disabled | boolean | — |
| readonly | boolean | — |
| fluid | boolean | — |
| clearable | boolean | Shows a clear button while there is text. |
| type | string | — |
Plus pt, dt and unstyled from BaseProps, see pass-through and unstyled mode.
Slots
| Name | Slot props | Description |
|---|---|---|
| prefix | — | Content inside the field, before the text: an icon, a currency sign. |
| suffix | — | Content inside the field, after the text: a unit, a button. |