Input Tag
Allows user to select or create tag from input.
Import
js
import { MpinputTag } from '@mekari/pixel3'
Playground
API
MpInputTag
Props
Events
Slots
Name | Type | Default |
---|---|---|
id | string | - |
placeholder | string | - |
data | DataInterface[] | [] |
max-tags | number | 100 |
suggestions | (string | Group | GroupSuggestions)[] | [] |
suggestion-key | string | label |
max-row | number | 2 |
height-trigger | string | auto |
width-content | string | auto |
key-code | string[] | ["Enter"] |
is-show-suggestions | boolean | false |
is-group-suggestions | boolean | false |
is-show-input | boolean | true |
is-read-only-tag | boolean | false |
is-invalid-tag | boolean | false |
is-loading | boolean | false |
is-suggestion-loading | boolean | false |
is-show-icon-chevron-down | boolean | false |
is-enable-create-new-tag | boolean | true |
is-disabled | boolean | false |
is-invalid | boolean | false |
is-read-only | boolean | false |
is-required | boolean | false |
is-infinity-scroll | boolean | false |
is-manual-filter | boolean | false |
is-truncated | boolean | true |
is-keep-alive | boolean | true |
is-adaptive-width | boolean | true |
use-portal | boolean | false |
text | object | {
add: 'Add',
noResultFound: 'No result found',
noOptions: 'No options',
duplicate: 'already selected before',
maxTags: 'You can only use',
tags: 'tags',
loading: 'Loading...'
} |