1.1.0 • Published 3 years ago

svelte-bulma-tag-input v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Install

npm install svelte-bulma-tag-input --save
import Tags from "svelte-bulma-tag-input";

<Tags bind:tags maxTags={5} />
@import "<PATH>/node_modules/svelte-bulma-tag-input/src/scss/styles";

Options

OptionTypeDefaultDescription
addKeysArrayENTER 13Set which keys add new values
removeKeysArrayBACKSPACE 8Set which keys remove new values
maxTagsNumber5Set maximum number of tags
disabledBooleanfalseDisable input
hasErrorBooleanfalseSet input error state
allowDuplicatesBooleanfalseSet the entered tags to be duplicatable
tagColorStringprimarySet the tag color
tagSizeStringnormalSet the tag size
inputSizeStringnormalSet the input field size
placeholderStringnullSet a placeholder
on:changeFunctionundefinedTo get the event fire from the tag change
A complete list of key codes

License

This project is open source and available under the MIT License.

Author

Suneesh S K

2021
1.1.0

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago