@react-three/uikit-default
Version:
Default (shadcn) kit for @react-three/uikit
7 lines (6 loc) • 438 B
JavaScript
import { Container } from '@react-three/uikit';
import React, { forwardRef } from 'react';
import { colors } from './theme.js';
export const Separator = forwardRef(({ orientation = 'horizontal', ...props }, ref) => {
return (React.createElement(Container, { flexShrink: 0, backgroundColor: colors.border, width: orientation === 'horizontal' ? '100%' : 1, height: orientation === 'horizontal' ? 1 : '100%', ref: ref, ...props }));
});