@nex-ui/react
Version:
🎉 A beautiful, modern, and reliable React component library.
20 lines (17 loc) • 444 B
JavaScript
"use client";
import { jsx } from 'react/jsx-runtime';
import { nex } from '@nex-ui/styled';
import { useSlotProps } from '../utils/useSlotProps.mjs';
const Box = (props)=>{
const rootProps = useSlotProps({
externalForwardedProps: props,
additionalProps: {
as: props.as || 'div'
}
});
return /*#__PURE__*/ jsx(nex.div, {
...rootProps
});
};
Box.displayName = 'Box';
export { Box };