UNPKG

@veracity/vui

Version:

Veracity UI is a React component library crafted for use within Veracity applications and pages. Based on Styled Components and @xstyled.

35 lines (34 loc) 1.11 kB
import { AnyString, PropsOf } from "../utils/types.js"; import "../utils/index.js"; import { ThemingProps } from "../theme/types.js"; import "../theme/index.js"; import { SvgProps } from "../svg/svg.types.js"; import { Svg } from "../svg/svg.js"; import "../svg/index.js"; import { VuiIcon } from "../icons/types.js"; import "../icons/index.js"; //#region src/icon/icon.types.d.ts type GetIconDetailsResult = { customIcon?: { d: string[]; pathProps: React.SVGProps<SVGPathElement>[]; svgProps: PropsOf<typeof Svg>; }; src?: string; }; type IconProp = VuiIcon | AnyString; type IconProps = SvgProps & ThemingProps<'Icon'> & { /** @deprecated use 'name' instead */ icon?: IconProp; /** Name of the icon stored in Veracity CDN. */ name?: IconProp; /** pathProps of the icon. */ pathProps?: any; /** Rotates the icon by given amount of degrees clockwise. */ rotate?: number; /** Uses a scale of 1-10 and multiply of 16px to define icon size. */ scale?: number; }; //#endregion export { GetIconDetailsResult, IconProp, IconProps }; //# sourceMappingURL=icon.types.d.ts.map