Label

How to use the Label component from the Default kit.

import { Canvas } from "@react-three/fiber";
import { Fullscreen } from "@react-three/uikit";
import { colors } from "@react-three/uikit-default";
import { Text, Container } from '@react-three/uikit'
import { Checkbox, Label } from '@react-three/uikit-default'

function LabelDemo() {
return (
  <Container flexDirection="row" gap={8} alignItems="center">
    <Checkbox />
    <Label>
      <Text>Accept terms and conditions</Text>
    </Label>
  </Container>
)
}

export default function App() {
return (
  <Canvas style={{ position: "absolute", inset: "0", touchAction: "none" }} gl={{ localClippingEnabled: true }}>
    <ambientLight intensity={0.5} />
    <directionalLight intensity={1} position={[-5, 5, 10]} />
    <Fullscreen
      overflow="scroll"
      flexDirection="column"
      alignItems="center"
      padding={32}
      backgroundColor={colors.background}
    >
      <LabelDemo />
    </Fullscreen>
  </Canvas>
)
}
import { Label } from "@react-three/uikit-default";