UNPKG

tntd

Version:

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

31 lines 1.11 kB
import type { IconDefinition } from '@tntd/icons/lib/types'; import * as React from 'react'; import { MiniMap } from './utils'; export interface IconProps { type: string | IconDefinition; className?: string; onClick?: React.MouseEventHandler<SVGSVGElement>; style?: React.CSSProperties; primaryColor?: string; secondaryColor?: string; focusable?: string; } export interface TwoToneColorPaletteSetter { primaryColor: string; secondaryColor?: string; } export interface TwoToneColorPalette extends TwoToneColorPaletteSetter { secondaryColor: string; } declare class Icon extends React.Component<IconProps> { static displayName: string; static definitions: MiniMap<IconDefinition>; static add(...icons: IconDefinition[]): void; static clear(): void; static get(key?: string, colors?: TwoToneColorPalette): IconDefinition | undefined; static setTwoToneColors({ primaryColor, secondaryColor }: TwoToneColorPaletteSetter): void; static getTwoToneColors(): TwoToneColorPalette; render(): any; } export default Icon; //# sourceMappingURL=Icon.d.ts.map