@react-three/uikit
Version:
Build performant 3D user interfaces with react-three-fiber and yoga.
14 lines (13 loc) • 569 B
TypeScript
import { IconProperties as BaseIconProperties } from '@pmndrs/uikit/internals';
import { ReactNode, RefAttributes } from 'react';
import { R3FEventMap } from './utils.js';
import { ComponentInternals } from './ref.js';
export type IconProperties = BaseIconProperties<R3FEventMap> & {
text: string;
svgWidth: number;
svgHeight: number;
children?: ReactNode;
name?: string;
};
export type IconRef = ComponentInternals<Partial<BaseIconProperties<R3FEventMap>>>;
export declare const Icon: (props: IconProperties & RefAttributes<IconRef>) => ReactNode;