wix-style-react
Version:
wix-style-react
33 lines (29 loc) • 835 B
TypeScript
import * as React from 'react';
import { EllipsisCommonProps } from '../common/Ellipsis/index';
export interface TagProps {
disabled?: boolean;
id: string;
onClick?: (id: string, event: React.MouseEvent<HTMLButtonElement>) => void;
onRemove?: (id: string) => void;
removable?: boolean;
size?: TagSize;
theme?: TagTheme;
thumb?: React.ReactElement;
maxWidth?: React.CSSProperties['maxWidth'];
ellipsisProps?: EllipsisCommonProps;
className?: string;
dataHook?: string;
children: React.ReactNode;
}
export default class Tag extends React.PureComponent<TagProps> {}
export type TagIconSize = 'small' | 'medium';
export type TagSize = 'tiny' | 'small' | 'medium' | 'large';
export type TagTheme =
| 'standard'
| 'error'
| 'warning'
| 'dark'
| 'neutral'
| 'success'
| 'light'
| 'lightOutlined';