Form
IconField
An icon inside a field, at the start or the end, with the text padded past it.
WAI-ARIA tested
Import
main.ts
import { IconField } from '@vitral/vue';Start and end
Both, with a meaningful icon
Other fields
API
Read from packages/vue/src/components/IconField/types.ts, so it says what the component actually accepts.
Props
| Name | Type | Description |
|---|---|---|
| fluid | boolean | Take the full width of the container. |
Plus pt, dt and unstyled from BaseProps, see pass-through and unstyled mode.
Slots
| Name | Slot props | Description |
|---|---|---|
| default | — | An `<InputIcon>` before the field puts the icon at the start; after it, at the end. |