1.5.1 • Published 2 years ago

@forter/chip v1.5.1

Weekly downloads
4
License
Apache-2.0
Repository
github
Last release
2 years ago

fc-chip

An element for catagorizing

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

Usage

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

<fc-chip>
     Chip
</fc-chip>

Examples

<!-- iconOnly -->
<fc-chip><fc-icon icon="edit"></fc-icon></fc-chip>

<!-- Icon - Intent - Success -->
<fc-chip intent="success">Approved</fc-chip>

Properties

PropertyAttributeTypeDefaultDescription
closeablecloseablebooleanfalsewhether the chip can be closed
closedclosedstringwether the chip closed
disableddisabledbooleanIf the element is disabled
intentintent"primary" \| "cancel" \| "success" \| "danger" \| "warn"The button's intent. See Intents in README.
requiredrequiredbooleanfalseIf the chip is required
selectedselectedbooleanfalsewhether the chip is select able
valuevaluestringvalue stored for delete event

Events

EventDescription
closefired when a chip remove clicked

CSS Custom Properties

PropertyDescription
--fc-chip-backgroundbackground color. example: gray,
--fc-chip-border-radiusborder radius. example: 25px,
--fc-chip-close-icon-colorclose icon. example: light-gray,
--fc-chip-cursorcursor. example: pointer,
--fc-chip-font-sizefont size. example: 12px,
--fc-chip-heightheight. example: 30px,
--fc-chip-hover-backgroundhover background color. example: light-gray,
--fc-chip-hover-colorhover text color. example: black.
--fc-chip-padding-leftpadding left. example: 10px,
--fc-chip-padding-rightpadding right. example: 10px,
--fc-chip-widthwidth. example: 25px,
1.5.1

2 years ago

1.5.0

2 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