Skip to content

Input Tag

Allows user to select or create tag from input.

Import

js
import { MpinputTag } from '@mekari/pixel3'

Playground

API

MpInputTag

Props
Events
Slots
NameTypeDefault
id
Id of input tag.
string -
placeholder
Id of input tag.
string -
data
Data of input tag.
DataInterface[][]
max-tags
Maximum tags.
number100
suggestions
Suggestions of input tag.
(string | Group | GroupSuggestions)[][]
suggestion-key
define key when user search and select suggestions.
stringlabel
max-row
Maximum row of input tag. set to -1 will be unlimited rows.
number2
height-trigger
Custom height for input tag.
stringauto
width-content
Custom width for input tag suggestion.
stringauto
key-code
List key code used to create tag.
string[]["Enter"]
is-show-suggestions
If true, suggestions list will showed up.
booleanfalse
is-group-suggestions
If true, suggestions list will showed up as group.
booleanfalse
is-show-input
If true, input will be showed.
booleantrue
is-read-only-tag
If true, tag is marked as read-only when created.
booleanfalse
is-invalid-tag
If true, tag is marked as invalid when created.
booleanfalse
is-loading
If true, loading icon will be displayed.
booleanfalse
is-suggestion-loading
If true, loading icon will be displayed on suggestions.
booleanfalse
is-show-icon-chevron-down
If true, chevron down icon will be displayed.
booleanfalse
is-enable-create-new-tag
If true, input can create new tag.
booleantrue
is-disabled
If true, input tag will be disable.
booleanfalse
is-invalid
If true, input tag will be invalid.
booleanfalse
is-read-only
If true, input tag will be read only.
booleanfalse
is-required
If true, mark as required.
booleanfalse
is-infinity-scroll
If true, input tag will enable infinity scroll. Get callback from scroll-end.
booleanfalse
is-manual-filter
If true, user need to handle filter manually.
booleanfalse
is-truncated
If true, tag will be truncated by default.
booleantrue
is-keep-alive
If true, popover will keep suggestion in DOM.
booleantrue
is-adaptive-width
If true, popover will render suggestion in adaptive width.
booleantrue
use-portal
If true, input tag is rendered with portal.
booleanfalse
text
Object to change static text.
object{ add: 'Add', noResultFound: 'No result found', noOptions: 'No options', duplicate: 'already selected before', maxTags: 'You can only use', tags: 'tags', loading: 'Loading...' }

Usage

Free Tag

Only Suggestions

Group Suggestions

Custom Suggestions

Custom Tag

Infinity Scroll

With Validation