/** * @file Tag 标签 */ import React, { CSSProperties, FC } from 'react'; import { ColorScheme } from '@/theme'; interface ComponentProps { /** * 文字 */ text: string | React.ReactNode; /** * 文字与背景色, 可传入 @/theme 中的 StatusColor 或 UIColor 配色方案. 文字颜色为 colors.text, 背景色为 colors.backgroundLight. */ colors: ColorScheme; /** * 是否反色. 反色时文字为白色, 背景色为 colors.background. */ inverse?: boolean; style?: CSSProperties; /** * for styled-components */ className?: string; onClick?: () => void; /** * 有些组件需要子组件接收一些鼠标事件才能正常运行(如 Popover、Dropdown 等) */ onMouseEnter?: (event: React.MouseEvent) => void; onMouseLeave?: (event: React.MouseEvent) => void; } export declare const Tag: FC; export {};