UNPKG

antd

Version:

An enterprise-class UI design language and React components implementation

27 lines (26 loc) 1.09 kB
import type React from 'react'; import type { FullToken } from '../../theme/internal'; import type { GenStyleFn, GetDefaultToken } from '../../theme/util/genComponentStyleHook'; export interface ComponentToken { /** * @desc 默认背景色 * @descEN Default background color */ defaultBg: string; /** * @desc 默认文字颜色 * @descEN Default text color */ defaultColor: string; } export interface TagToken extends FullToken<'Tag'> { tagFontSize: number; tagLineHeight: React.CSSProperties['lineHeight']; tagIconSize: number | string; tagPaddingHorizontal: number; tagBorderlessBg: string; } export declare const prepareToken: (token: Parameters<GenStyleFn<'Tag'>>[0]) => TagToken; export declare const prepareComponentToken: GetDefaultToken<'Tag'>; declare const _default: (prefixCls: string, rootCls?: string) => readonly [(node: React.ReactElement<any, string | React.JSXElementConstructor<any>>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>, string, string | undefined]; export default _default;