import { ArgsTable } from '@storybook/addon-docs/blocks';
import Chip from "../index";

# Chip

Chip can be used as a label which indicates some specific property of the selected area.
If no `onDelete` handler is assigned, delete icon will not be rendered!

# Props

Pass the needed text to `text` prop.
Add an action on delete icon click using `onDelete` prop. If not specified, delete icon is not rendered.
Add custom styles to `style` prop.
Configure the size of delete icon using `iconSize` prop.
Configure the height of Chip using `height` prop.
Configure the background color of Chip using `backgroundColor` prop.
Configure the background color of Chip when it is hovered using `onHoverBackgroundColor` prop.
Configure the background color of Chip when it is active using `onActiveBackgroundColor` prop.

<ArgsTable of={Chip} />
