ChipProps
Definition
interface ChipProps {
/**
* Optional icon identifier for the chip (e.g., FontAwesome icon name).
*/
icon?: string;
/**
* The label content to display in the chip. Can be a string or a React node.
*/
label: string | ReactNode;
/**
* Position of the icon relative to the label. Defaults to 'left'.
*/
iconPosition?: 'left' | 'right';
/**
* Background color of the chip. Accepts any valid CSS color value.
*/
backgroundColor?: string;
/**
* Text color of the chip. Accepts any valid CSS color value.
*/
textColor?: string;
/**
* Callback function executed when the chip is clicked.
*/
onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
/**
* Additional CSS styles to apply to the chip.
*/
additionalStyles?: React.CSSProperties;
}Usage
Last updated