@innovaccer/design-system
Version:
React components library project for Innovaccer Design System
31 lines (30 loc) • 892 B
TypeScript
import * as React from 'react';
import { BaseProps } from "../../../utils/types";
import { IconType } from "../../../common.type";
export declare type ChipType = 'action' | 'selection' | 'input';
export declare type Name = number | string | object;
export declare type ChipSize = 'regular' | 'small';
export interface ChipProps extends BaseProps {
label: string | React.ReactElement;
labelPrefix?: string;
icon?: string;
iconType?: IconType;
size?: ChipSize;
clearButton?: boolean;
disabled?: boolean;
selected?: boolean;
type: ChipType;
onClose?: (name: Name) => void;
onClick?: (name: Name) => void;
name: Name;
maxWidth?: string | number;
}
export declare const Chip: {
(props: ChipProps): React.JSX.Element;
displayName: string;
defaultProps: {
type: string;
maxWidth: string;
};
};
export default Chip;