Skip to content
Enact

limestone/Chips

Provides Limestone styled Chips and Chip comoponents and behaviors.

Loading Live Preview

A container that contains the basic behavior of limestone/Chipslimestone/Chips.Chips.

Extends: limestone/Chipslimestone/Chips.ChipsBase
Wrapped with: spotlight/SpotlightContainerDecoratorspotlight/SpotlightContainerDecorator.SpotlightContainerDecorator

Properties

limestone/Chipslimestone/Chips.Chip to be rendered


'horizontal''vertical'

The layout orientation of the component.

Default: 'vertical'

Provides Limestone styled Chip component and behaviors.

Usage:

<Chip
	deleteButton={{
		icon: 'closex',
		position: 'right'
	}}
	icon="check"
	id="chip"
>
 Label
</Chip>

Properties

A label displayed in the chip content.


Unique identifier for the chip.


Sets the chip as checked if true


limestone/Chips.chipDeleteButtonShapeBoolean

Define the icon, delete handler, and position for the delete button.


Disables Chip and becomes non-interactive.


The icon content in the chip content. If this is specified, limestone/Iconlimestone/Icon.Icon will be shown as the content.


Sets the size of the image passed to the component.


If true tells the component to use Image instead of Icon element inside Chip.

Limestone-specific Chip behaviors to apply to limestone/Chipslimestone/Chips.Chip.

Includes: limestone/Skinnablelimestone/Skinnable.Skinnable

A container that surrounds the chips.

Usage:

<Chips>
	{chips.map(({id, icon, children}) => {
		return (
			<Chip key={id} id={id} icon={icon} onClick={onClick}>
				{children}
			</Chip>
		);
	})}
</Chips>

Applies Limestone specific behaviors to limestone/Chipslimestone/Chips.Chips components.

Includes: spotlight/SpotlightContainerDecoratorspotlight/SpotlightContainerDecorator.SpotlightContainerDecorator

The shape of the chip delete button for limestone/Chipslimestone/Chips.Chip.

Required Propertyicon
String | Object

The icon to display in the delete button.


Required PropertyonDelete
Function

The function to call when the delete button is clicked.


Required Propertyposition
'top' | 'bottom' | 'right'

The position of the delete button relative to the chip.