npm0.5.1
downloads15k
chaton discord
Closable tags have a button that can be focused, it emits a close
event when clicked or when delete key is pressed.
# Closable
# Tag list
Use the attached
prop to attach tags together.
Combine with field to group attached tags.
# Sizes and types
Two additional sizes. Many colors with light variant.
Name | Description | Type | Values | Default |
---|---|---|---|---|
type | Type (color) of the tag, optional | String | is-white , is-black , is-light ,
is-dark , is-primary , is-info , is-success ,
is-warning , is-danger ,
and any other colors you've set in the $colors list on Sass | — |
close-type | Type (color) of the cross button of tag, optional | String | is-white , is-black , is-light ,
is-dark , is-primary , is-info , is-success ,
is-warning , is-danger ,
and any other colors you've set in the $colors list on Sass | — |
size | Size of the tag, optional | String | is-medium , is-large | — |
rounded | Tag border rounded | Boolean | — | false |
closable | Add close/delete button to the tag | Boolean | — | false |
attached | Close/delete button style equal to attached tags | Boolean | — | false |
ellipsis | Adds ellipsis to not overflow the text | Boolean | — | false |
tabstop | If should stop when using tab key | Boolean | — | true |
disabled | Disable delete button | Boolean | — | false |
aria-close-label | Accessibility label for the close button | String | — | - |
icon | Adds an icon to the left of the tag. | String | — | - |
icon-pack | Icon pack to use | String | mdi , fa , fas , far , fab , fad , fal | mdi |
icon-type | Type (color) of the icon on the left side of tag, optional | String | is-white , is-black , is-light ,
is-dark , is-primary , is-info , is-success ,
is-warning , is-danger ,
and any other colors you've set in the $colors list on Sass | — |
close-icon | Replace times in close button with a customized icon. closable and attached props should be needed. | String | — | - |
close-icon-pack | Icon pack to use | String | mdi , fa , fas , far , fab , fad , fal | mdi |
close-icon-type | Type (color) of the close icon of tag, optional | String | is-white , is-black , is-light ,
is-dark , is-primary , is-info , is-success ,
is-warning , is-danger ,
and any other colors you've set in the $colors list on Sass | — |
Name | Description | Type | Values | Default |
---|---|---|---|---|
attached | Tags inside are attached together | Boolean | — | false |
This page is open source. Noticed a typo or something's unclear?