UNPKG

@react-three/uikit

Version:

Build performant 3D user interfaces with react-three-fiber and yoga.

12 lines (11 loc) 603 B
import { ReactNode, RefAttributes } from 'react'; import { R3FEventMap } from './utils.js'; import { TextProperties as BaseTextProperties } from '@pmndrs/uikit/internals'; import { ComponentInternals } from './ref.js'; import { Signal } from '@preact/signals-core'; export type TextProperties = { children: unknown | Array<unknown | Signal<unknown>> | Signal<unknown>; name?: string; } & BaseTextProperties<R3FEventMap>; export type TextRef = ComponentInternals<Partial<BaseTextProperties<R3FEventMap>>>; export declare const Text: (props: TextProperties & RefAttributes<TextRef>) => ReactNode;