@redocly/theme
Version:
Shared UI components lib
15 lines (12 loc) • 410 B
text/typescript
import type React from 'react';
export type IconProps = {
color?: string;
size?: string;
className?: string;
} & React.SVGProps<SVGSVGElement>;
export type CDNIconProps = IconProps & {
name: string;
type?: string;
pack?: 'font-awesome' | 'code'; // default is font-awesome, code is for vscode icons
mode?: 'mask' | 'background'; // default is mask, background allows to keep original colors
};