UNPKG

tntd

Version:

tntd是基于 TNT Design 设计体系的 React UI 组件库,主要用于研发企业级中后台产品。

52 lines 1.27 kB
import React, { ReactNode } from 'react'; import type { TagProps as AntdTagProps } from 'antd/lib/tag'; import './label.less'; export declare enum LabelColors { cyan = "cyan", green = "green", iris = "iris", blue = "blue", lavender = "lavender", orange = "orange", golden = "golden", red = "red", grey = "grey" } export interface LabelProps extends AntdTagProps { /** * 类型 */ type?: 'dot' | 'filled' | 'outline' | 'rounded'; /** * 颜色 */ color?: LabelColors | string; /** * 文字是否同色 */ textColorSame?: boolean; /** * 图标 */ icon?: ReactNode; /** * 图标位置 */ iconPosition?: 'prefix' | 'suffix'; /** * 省略配置 */ ellipsisOptions?: { Popover?: boolean; emptyText?: string; widthLimit?: number | string; lines?: number; [key: string]: unknown; }; } export declare const Label: { ({ className, children, type, color, icon, style, textColorSame, iconPosition, ellipsisOptions, ...props }: LabelProps): React.JSX.Element; CheckableLabel: typeof import("antd/lib/tag/CheckableTag").default; }; export default Label; //# sourceMappingURL=index.d.ts.map