UNPKG

534 BTypeScriptView Raw
1import React from 'react';
2import type { FC, ReactNode } from 'react';
3import { NativeProps } from '../../utils/native-props';
4export declare type TagProps = {
5 color?: 'default' | 'primary' | 'success' | 'warning' | 'danger' | (string & {});
6 fill?: 'solid' | 'outline';
7 round?: boolean;
8 onClick?: (e: React.MouseEvent<HTMLSpanElement, MouseEvent>) => void;
9 children?: ReactNode;
10} & NativeProps<'--border-color' | '--background-color' | '--text-color' | '--border-radius'>;
11export declare const Tag: FC<TagProps>;