@unicity/design-system
Version:
A comprehensive React component library built on Material-UI with advanced theming capabilities including neumorphism design support
46 lines • 1.23 kB
TypeScript
import React from 'react';
import { ChipProps as MuiChipProps } from '@mui/material';
export interface ChipProps extends Omit<MuiChipProps, 'color'> {
/**
* The color of the chip
*/
color?: 'primary' | 'secondary' | 'success' | 'error' | 'warning' | 'info' | 'default' | 'unicityGreen' | 'unicityBlue' | 'unicityPurple' | 'unicityOrange' | 'unicityNavy';
/**
* The variant of the chip
*/
variant?: 'filled' | 'outlined';
/**
* The size of the chip
*/
size?: 'small' | 'medium';
/**
* Whether the chip is clickable
*/
clickable?: boolean;
/**
* Whether the chip is deletable
*/
deletable?: boolean;
/**
* The label of the chip
*/
label: React.ReactNode;
/**
* Icon element placed before the label
*/
icon?: React.ReactElement;
/**
* Icon element placed after the label (for delete)
*/
deleteIcon?: React.ReactElement;
/**
* Callback fired when the delete icon is clicked
*/
onDelete?: () => void;
/**
* Callback fired when the chip is clicked
*/
onClick?: () => void;
}
export declare const Chip: React.FC<ChipProps>;
//# sourceMappingURL=Chip.d.ts.map