Separator
How to use the Separator component from the Default kit.
import { Canvas } from "@react-three/fiber"; import { Fullscreen } from "@react-three/uikit"; import { Defaults, DialogAnchor } from "@react-three/uikit-default"; import { DefaultProperties, Text, Container } from '@react-three/uikit' import { colors } from "@react-three/uikit-default" import { Separator } from "@react-three/uikit-default" function SeparatorDemo() { return ( <Container width={300} flexDirection="column"> <Container flexDirection="column" gap={4}> <Text fontSize={14} lineHeight="100%"> Radix Primitives </Text> <Text fontSize={14} lineHeight={20} color={colors.mutedForeground}> An open-source UI component library. </Text> </Container> <Separator marginY={16} /> <Container flexDirection="row" height={20} alignItems="center" gap={16}> <DefaultProperties fontSize={14} lineHeight={20}> <Text>Blog</Text> <Separator orientation="vertical" /> <Text>Docs</Text> <Separator orientation="vertical" /> <Text>Source</Text> </DefaultProperties> </Container> </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]} /> <Defaults> <Fullscreen overflow="scroll" scrollbarColor="black" backgroundColor="white" dark={{ backgroundColor: "black" }} flexDirection="column" gap={32} paddingX={32} alignItems="center" padding={32} > <DialogAnchor><SeparatorDemo /></DialogAnchor> </Fullscreen> </Defaults> </Canvas> ) }
npx uikit component add default separator