@littlespoon/tag
Version:
21 lines • 612 B
TypeScript
import type React from 'react';
export interface TagProps extends React.HTMLAttributes<HTMLElement> {
/**
* Content to display the component. Defaults to "Tag".
*/
children?: React.ReactNode;
/**
* The size of the component. Defaults to "medium".
*/
size?: 'small' | 'medium' | 'large';
/**
* Callback when the component is clicked.
*/
onClick?: () => void;
/**
* Callback when close button is clicked.
*/
onDelete?: () => void;
}
export default function Tag(props: TagProps): React.ReactElement<TagProps>;
//# sourceMappingURL=Tag.d.ts.map