@trail-ui/react
Version:
34 lines (31 loc) • 990 B
TypeScript
import * as react_jsx_runtime from 'react/jsx-runtime';
import { TagGroupProps as TagGroupProps$1, TagProps as TagProps$1, TagListProps } from 'react-aria-components';
declare const colors: {
default: {
base: string;
selected: string;
};
success: {
base: string;
selected: string;
};
warning: {
base: string;
selected: string;
};
destructive: {
base: string;
selected: string;
};
};
type Color = keyof typeof colors;
interface TagGroupProps extends TagGroupProps$1 {
color?: Color;
}
interface TagProps extends TagProps$1 {
color?: Color;
}
declare function TagGroup({ children, ...props }: TagGroupProps): react_jsx_runtime.JSX.Element;
declare function TagList<T extends object>(props: TagListProps<T>): react_jsx_runtime.JSX.Element;
declare function Tag({ children, ...props }: TagProps): react_jsx_runtime.JSX.Element;
export { Tag, TagGroup, TagGroupProps, TagList, TagProps };