Components
| Component | Purpose |
|---|---|
<XrScene> | Owns the XR session, input and frame loop. |
<XrPanel> | Floating surface, flex container. |
<XrWindow> | A panel you can pick up and move. |
<XrDialog> | Modal panel in front of the viewer, with a backdrop. |
<XrBox> | Transparent flex container. |
<XrText> | Text in the theme's type scale. |
<XrButton> | Button, three variants, three sizes, optional icon. |
<XrIcon> | Lucide or SVG icon. |
<XrToggle> | On/off switch. |
<XrCheckbox> | Checkbox, with an indeterminate state. |
<XrRadioGroup> | One choice out of a few, all shown. |
<XrSlider> | Number in a range. |
<XrProgress> | Progress bar and spinner. |
<XrTabs> | Segmented tabs. |
<XrList> | Scrolling list with items. |
<XrSelect> | Dropdown with a floating list of options. |
<XrTooltip> | Hover hint. |
<XrTextField> | Single-line text input. |
<XrNumberInput> | Number with − / + and a field. |
<XrKeyboard> | On-screen keyboard with voice input. |
<XrFollow> | Keeps content in view: lazy follow, faces you. |
<XrBillboard> | Turns content to face the viewer. |
<XrPlanes> | Draws the walls, tables and floor the headset found. |
<XrAnchor> | Keeps content at a spot in the room across sessions. |
<XrHandMenu> | A menu above the palm when you turn it toward your face. |
<XrThemeProvider> | Theme for a part of the scene. |
<XrExitButton> | Button in the scene that ends the session. |
<XrSessionMenu> | Palm pinch asks to leave the session. |
<XrEnterButton> | DOM button to enter VR or AR. |