Link Search Menu Expand Document

If you are more familar with react, you can import react elements into your own .jsx files and use them as follows:

import React from 'react';
import ReactDOM from 'react-dom';
import { TextInput } from '@playcanvas/pcui/react';

ReactDOM.render(
    <TextInput />,
    document.body
);

This will render a single text input to the document’s body element. You can see the result of this rendered component below:

For more extensive examples, see the UI examples section.