@innovaccer/design-system
Version:
React components library project for Innovaccer Design System
31 lines (30 loc) • 845 B
TypeScript
import * as React from 'react';
import { Name, ChipType } from "../chip/Chip";
import { BaseProps } from "../../../utils/types";
import { IconType, TChipSize } 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;
size?: TChipSize;
type?: ChipType;
role?: string;
'aria-label'?: string;
'aria-labelledby'?: string;
}
export declare const GenericChip: {
(props: GenericChipProps): React.JSX.Element;
displayName: string;
defaultProps: {
maxWidth: string;
};
};
export default GenericChip;