@innovaccer/design-system
Version:
React components library project for Innovaccer Design System
26 lines (25 loc) • 703 B
TypeScript
import * as React from 'react';
import { Name } from "../chip/Chip";
import { BaseProps } from "../../../utils/types";
import { IconType } from "../../../common.type";
export interface GenericChipProps extends BaseProps {
label: string | React.ReactElement;
labelPrefix?: string;
icon?: string;
clearButton?: boolean;
disabled?: boolean;
selected?: boolean;
onClose?: () => void;
onClick?: () => void;
iconType?: IconType;
name: Name;
maxWidth: string | number;
}
export declare const GenericChip: {
(props: GenericChipProps): React.JSX.Element;
displayName: string;
defaultProps: {
maxWidth: string;
};
};
export default GenericChip;