Chips are used to show discrete information, filter options, input tags, or actions.
npm install --save-dev @smui/chipshttps://sveltematerialui.com/demo/chips
A chip.
use:[]- An array of Svelte actions and/or arrays of an action and its options.class:''- A CSS class string.ripple:true- Whether to implement a ripple for when the component is interacted with.touch:false- Increase the touch target.shouldRemoveOnTrailingIconClick:true- Whether the chip should be removed upon clicking the trailing icon.shouldFocusPrimaryActionOnClick:true- Whether the chip should focus the primary action when it is clicked.
MDCChip:interactionMDCChip:selectionMDCChip:removalMDCChip:trailingIconInteractionMDCChip:navigation
A set of chips. Chips should only be added onto the end of the set's chip array.
use:[]- An array of Svelte actions and/or arrays of an action and its options.class:''- A CSS class string.chips[]- An array containing the chips.keychip => chip- A function used to get the key of the chip. Chip sets that have removable chips should always provide unique keys.selectedundefined- The currently selected chip or chips.choicefalse- Whether to present the chips as a set of choices, allowing one to be chosen.filterfalse- Whether to present the chips as a set of options, allowing any number to be chosen.inputfalse- Whether to present the chips as a set of values, allowing them to be removed.
A text label.
todo...
A graphic icon.
todo...
A graphic icon.
todo...
A graphic icon.
todo...
See Chips in the Material design spec.
See Chips in MDC-Web for information about the upstream library's architecture.