obap-chip

June 12, 2020 ยท View on GitHub

A Material Design chip element.

Properties

PropertyAttributeTypeDefaultDescription
disableddisabledBoolean"false"If true, the button will be disabled.
iconiconstring""The icon to display in the button (to the left of the label).
labellabelstring""The text to display in button.
removableremovablebooleanfalseWhether or not the chip has a remove icon.
roleroleString"null"The ARIA role of the element.
selectedselectedbooleanfalseWhether or not the chip is selected, if it's a toggle chip.
showCheckshow-checkbooleanfalseWhether or not to display a check icon, if it's a toggle chip.
toggletogglebooleanfalseWhether or not the chip behaves as a toggle.

Events

Event
obap-chip-click
obap-chip-remove