limestone/Chips
Provides Limestone styled Chips and Chip comoponents and behaviors.
Loading Live Preview
Loading Live Preview
Members
Section titled “Members ”Chips Component
Section titled “Chips   Component ”A container that contains the basic behavior of limestone/Chipslimestone/Chips.Chips.
Extends:
limestone/Chipslimestone/Chips.ChipsBase
Wrapped with:
spotlight/SpotlightContainerDecoratorspotlight/SpotlightContainerDecorator.SpotlightContainerDecorator
Properties
children
Section titled “children”limestone/Chipslimestone/Chips.Chip to be rendered
The layout orientation of the component.
Default: 'vertical'Chip Component
Section titled “Chip   Component ”Provides Limestone styled Chip component and behaviors.
Usage:
<Chip
deleteButton={{
icon: 'closex',
position: 'right'
}}
icon="check"
id="chip"
>
Label
</Chip>
Properties
Required Property • children
Section titled “Required Property • children”A label displayed in the chip content.
Required Property • id
Section titled “Required Property • id”Unique identifier for the chip.
checked
Section titled “checked”Sets the chip as checked if true
Define the icon, delete handler, and position for the delete button.
disabled
Section titled “disabled”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.
imageSize
Section titled “imageSize”Sets the size of the image passed to the component.
isImage
Section titled “isImage”If true tells the component to use Image instead of Icon element inside Chip.
ChipDecorator Higher-Order Component
Section titled “ChipDecorator   Higher-Order Component ”Limestone-specific Chip behaviors to apply to limestone/Chipslimestone/Chips.Chip.
Includes:
limestone/Skinnablelimestone/Skinnable.Skinnable
ChipsBase Component
Section titled “ChipsBase   Component ”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>
ChipsDecorator Higher-Order Component
Section titled “ChipsDecorator   Higher-Order Component ”Applies Limestone specific behaviors to limestone/Chipslimestone/Chips.Chips components.
Includes:
spotlight/SpotlightContainerDecoratorspotlight/SpotlightContainerDecorator.SpotlightContainerDecorator
Type Definitions
Section titled “Type Definitions ”chipDeleteButtonShape Object
Section titled “chipDeleteButtonShape   Object ”The shape of the chip delete button for limestone/Chipslimestone/Chips.Chip.
The icon to display in the delete button.
The function to call when the delete button is clicked.
The position of the delete button relative to the chip.