UNPKG

@playcanvas/pcui

Version:

User interface component library for the web

24 lines (23 loc) 834 B
import * as React from 'react'; import { Element as ElementClass, ElementArgs } from './index'; /** * The base class for all UI elements. Wraps a DOM element with the PCUI interface. */ declare class Element<P extends ElementArgs, S> extends React.Component<P, S> { static ctor: any; element: ElementClass; elementClass: typeof ElementClass; onClick: () => void; onChange: (value: any) => void; onRemove: () => void; link: ElementArgs['link']; onAttach?: () => void; class: Set<string>; constructor(props: P); attachElement: (nodeElement: HTMLElement, containerElement: any) => void; getPropertyDescriptor: (obj: any, prop: any) => PropertyDescriptor; componentDidMount(): void; componentDidUpdate(prevProps: any): void; render(): React.JSX.Element; } export { Element };