@mskcc/carbon-react
Version:
Carbon react components for the MSKCC DSM
18 lines (17 loc) • 613 B
TypeScript
import React, { FC } from 'react';
export interface TagProps {
type?: 'red' | 'magenta' | 'purple' | 'blue' | 'cyan' | 'teal' | 'green' | 'gray' | 'cool-gray' | 'warm-gray' | 'high-contrast' | 'outline' | 'ghost';
size?: 'sm' | 'md' | 'lg' | undefined;
disabled?: boolean | undefined;
icon?: React.ReactNode;
children: React.ReactNode;
filter?: true | false | undefined;
label?: string;
/**
* Prefix used by carbon in all their classes. Default is 'bx'
*/
prefix?: string;
onClick?: () => void;
onClose?: () => void;
}
export declare const Tag: FC<TagProps>;