UNPKG

@spark-web/icon

Version:

--- title: Icon isExperimentalPackage: false ---

16 lines (15 loc) 709 B
import type { ForegroundTone } from '@spark-web/text'; import type { BrighteTheme } from '@spark-web/theme'; import type { DataAttributeMap } from '@spark-web/utils/internal'; import type { ReactNode } from 'react'; declare type SizeType = Exclude<keyof BrighteTheme['sizing'], 'full' | 'none'>; export declare type IconProps = { /** Sets data attributes for the element. */ data?: DataAttributeMap; /** The size of the icon. */ size?: SizeType; /** The tone of the icon. */ tone?: ForegroundTone; }; export declare const createIcon: (children: ReactNode, name: string) => import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<SVGSVGElement>>; export {};