2.1
Input
Used to get user input in a text field.
Import
js
import { MpInput, MpInputGroup, MpInputLeftAddon, MpInputRightAddon } from '@mekari/pixel3'Playground
API
MpInput
Props
Events
Slots
| Name | Type | Default |
|---|---|---|
as | string | object | input |
model-value | number | string | - |
id | string | - |
variant | unstyled | outline | outline |
size | sm | md | md |
placeholder | string | - |
is-read-only | boolean | false |
is-disabled | boolean | false |
is-invalid | boolean | false |
is-required | boolean | false |
is-full-width | boolean | true |
is-clearable | boolean | false |
MpInputGroup
Props
Slots
| Name | Type | Default |
|---|---|---|
id | string | - |
size | sm | md | md |
MpInputLeftAddon
Props
Slots
| Name | Type | Default |
|---|---|---|
id | string | - |
has-background | boolean | false |
MpInputRightAddon
Props
Slots
| Name | Type | Default |
|---|---|---|
id | string | - |
has-background | boolean | false |
Usage
Variant
Size
With group addon
The has-background prop is used on input addon prefix and suffix for type of styles.