Skip to content

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
NameTypeDefault
as
Component used for root node.
string | objectinput
model-value
Value of input.
number | string -
id
Id of input.
string -
variant
Variant of input.
unstyled | outlineoutline
size
Size of input.
sm | mdmd
placeholder
Placeholder of input.
string -
is-read-only
If true, input be read only.
booleanfalse
is-disabled
If true, input will be disabled.
booleanfalse
is-invalid
If true, input is marked as invalid.
booleanfalse
is-required
If true, input will be required.
booleanfalse
is-full-width
If true, input will span full width of it parent.
booleantrue
is-clearable
If true, allow to remove input content with clear icon.
booleanfalse

MpInputGroup

Props
Slots
NameTypeDefault
id
Id of input group.
string -
size
Size of input in group.
sm | mdmd

MpInputLeftAddon

Props
Slots
NameTypeDefault
id
Id of input group.
string -
has-background
If true, input addon has background.
booleanfalse

MpInputRightAddon

Props
Slots
NameTypeDefault
id
Id of input group.
string -
has-background
If true, input addon has background.
booleanfalse

Usage

Variant

Size

With group addon

The has-background prop is used on input addon prefix and suffix for type of styles.