0.3.3 • Published 4 days ago

@react-three/uikit v0.3.3

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
github
Last release
4 days ago

Version Downloads Twitter Discord

uikit banner

Build performant 3D user interfaces for Three.js using @react-three/fiber and yoga with support for nested scrolling, buttons, inputs, dropdowns, tabs, checkboxes, and more.

Perfect for games, XR (VR/AR), and any web-based Spatial Computing App.

npm install three @react-three/fiber @react-three/uikit

What does it look like?

A simple UI with 2 containers horizontally aligned, rendered in fullscreen. When the user hovers over a container, the container's opacity changes.render of the above code
import { createRoot } from 'react-dom/client'
import React from 'react'
import { Canvas } from '@react-three/fiber'
import { Fullscreen, Container } from '@react-three/uikit'

createRoot(document.getElementById('root')).render(
  <Canvas>
    <Fullscreen flexDirection="row" padding={10} gap={10}>
      <Container flexGrow={1} backgroundOpacity={0.5} hover={{ backgroundOpacity: 1 }} backgroundColor="red" />
      <Container flexGrow={1} backgroundOpacity={0.5} hover={{ backgroundOpacity: 1 }} backgroundColor="blue" />
    </Fullscreen>
  </Canvas>,
)

Pre-styled component kits

We provide multiple kits containing themable pre-styled components. Inspired by shadcn, you can use our CLI to install the source code of any component to your desired loaction with one command.

For example, to add the button from the default kit, run: npx uikit component add default Button

default based on Shadcnapfel inspired by AVP
Overview over all default componentsOverview over all apfel components
View All ComponentsView All Components
npx uikit component add default Buttonnpx uikit component add apfel Button

How to get started

Some familiarity with react, threejs, and @react-three/fiber, is recommended.

Get started with building your first layout, take a look at our examples to see uikit in action, or learn more about:

Migration guides

0.3.3

4 days ago

0.3.2

11 days ago

0.3.1

13 days ago

0.3.0

22 days ago

0.2.9

1 month ago

0.2.8

1 month ago

0.2.7

1 month ago

0.2.6

2 months ago

0.2.5

2 months ago

0.2.4

2 months ago

0.2.3

2 months ago

0.2.1

2 months ago

0.2.2

2 months ago

0.1.22

2 months ago

0.2.0

2 months ago

0.1.20

2 months ago

0.1.21

2 months ago

0.1.19

2 months ago

0.1.15

2 months ago

0.1.16

2 months ago

0.1.17

2 months ago

0.1.18

2 months ago

0.1.14

2 months ago

0.1.12

3 months ago

0.1.13

3 months ago

0.1.11

3 months ago

0.1.10

3 months ago

0.1.9

3 months ago

0.1.8

3 months ago

0.1.7

3 months ago

0.1.6

3 months ago

0.1.5

3 months ago

0.1.4

3 months ago

0.1.3

3 months ago

0.1.2

3 months ago

0.1.1

3 months ago

0.1.0

3 months ago