@cimpress/react-components
Version:
React components to support the MCP styleguide
18 lines • 810 B
TypeScript
import React from 'react';
import { PublicComponentProps } from './types';
export interface TagProps extends PublicComponentProps {
/** Label to render within the tag. If not provided, value will be shown */
label?: React.ReactNode;
/** Function to be called when the x to remove the tag is clicked */
onRemoveClick?: (value?: React.ReactNode) => void;
/** Determines whether to show an 'x' at the right hand side of the component to indicate the tag can be removed */
removable?: boolean;
/** The size of the tag */
size?: 'sm' | 'default' | 'lg';
/** Value represented by the tag */
value?: React.ReactNode;
/** Tag variant */
variant?: 'default' | 'counter';
}
export declare function Tag(props: TagProps): React.JSX.Element;
//# sourceMappingURL=Tag.d.ts.map