UNPKG

tntd

Version:

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

41 lines 1.37 kB
import React from 'react'; import type { TagProps as AntdTagProps } from 'antd/lib/tag'; import type { CheckableTagProps as AntdCheckableTagProps } from 'antd/lib/tag'; import { default as AntdTag } from 'antd/lib/tag'; export * from 'antd/lib/tag'; export declare enum TagColors { grey = "grey", rose = "rose", lightblue = "lightblue", bluegrey = "bluegrey", purplegrey = "purplegrey", lightpurple = "lightpurple", lightgreen = "lightgreen", 'tnt-pink' = "tnt-pink", 'tnt-orange' = "tnt-orange", 'tnt-purple' = "tnt-purple" } export interface TagProps extends AntdTagProps { color?: TagColors | string; size?: 'small' | 'middle' | 'large'; border?: boolean; addonContent?: React.ReactNode; addonPosition?: 'prefix' | 'suffix'; addonType?: 'success' | 'info' | 'warning' | 'error'; ellipsisOptions?: { Popover?: boolean; emptyText?: string; widthLimit?: number | string; lines?: number; [key: string]: unknown; }; } export interface CheckableTagProps extends AntdCheckableTagProps { disabled?: boolean; border?: boolean; } interface TagComponent extends React.ForwardRefExoticComponent<TagProps & React.RefAttributes<AntdTag>> { CheckableTag: React.FC<CheckableTagProps>; } export declare const Tag: TagComponent; //# sourceMappingURL=tag.d.ts.map