@trellixio/roaster-coffee
Version:
Beans' product component library
19 lines • 728 B
TypeScript
import * as React from 'react';
import { ForwardRefWithStaticComponents } from '@/types';
import { TagGroup } from './TagGroup';
export interface TagProps {
/** The content of the tag. */
children: React.ReactNode;
/** A callback function that is called when the tag's remove button is clicked. */
onRemove?(): void;
/** The color of the tag. Can be `default`, `danger`, or `success`. */
color?: 'default' | 'danger' | 'success';
/** CSS class names to apply to the tag root element. */
className?: string;
}
declare type TagComponent = ForwardRefWithStaticComponents<TagProps, {
Group: typeof TagGroup;
}>;
export declare const Tag: TagComponent;
export {};
//# sourceMappingURL=Tag.d.ts.map