1.3.9 • Published 11 months ago

@forter/chips v1.3.9

Weekly downloads
4
License
Apache-2.0
Repository
github
Last release
11 months ago

fc-chips

An element for wrapping collections of chips

npm.io npm.io npm.io npm.io npm.io npm.io

Usage

<script>
   import '@forter/chips';
</script>

<fc-chips>
     <fc-chip closeable chip-id="approve" intent="success" filter="true">Approved</fc-chip>
     <fc-chip closeable chip-id="pending" intent="primary" filter="true">Pending</fc-chip>
     <fc-chip closeable chip-id="nr" intent="cancel" filter="true">Not Reviewed</fc-chip>
     <fc-chip closeable chip-id="selected" selected="true"><fc-icon icon="edit"></fc-icon>Selected</fc-chip>
</fc-chips>

Properties

PropertyAttributeTypeDefaultDescription
menumenubooleanwhether or not to display the chip menu
searchtextsearchtextstring""filter chips in the menu
typetype"normal" \| "stacked" \| "more"what way to display the chips
valuesvaluesany[]what way to display the chips

Events

EventDescription
changewhen the chips are added/removed

CSS Custom Properties

PropertyDescription
--fc-chips-flex-wrapchips container flex-wrap. example: wrap
--fc-chips-gapchips gap. example: 5px
1.3.9

11 months ago

1.3.8

2 years ago

1.3.7

2 years ago

1.3.6

2 years ago

1.3.5

2 years ago

1.3.4

2 years ago

1.3.3

3 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.0

4 years ago