import clsx from "clsx"; import * as React from "react"; import type { BreakpointThreshold } from "../../types/responsive"; import { useStyleProps, type StyleProps } from "../../utils/styled"; import { Slot } from "@radix-ui/react-slot"; export type BoxProps = StyleProps & Omit, "color"> & { as?: React.ElementType; asChild?: boolean; hideFrom?: BreakpointThreshold; }; export const Box = React.forwardRef((props, ref) => { const { hideFrom, ...rest } = props; const { style, restProps } = useStyleProps(rest); const { as: Comp = "div", asChild = false, className, ...nativeProps } = restProps; if (asChild) { return ( ); } return ( ); });