'use client'; import { PolymorphicComponentProps } from '@kalink-ui/dibbly'; import { assignInlineVars } from '@vanilla-extract/dynamic'; import { ElementType } from 'react'; import { SwitcherVariants, switcherVars } from './switcher.css'; import { switcherResponsive } from './switcher.responsive'; import type { Responsive } from '../../styles/responsive'; export type SwitcherProps = PolymorphicComponentProps & Omit & { /** * The threshold at which to switch between horizontal and vertical layouts */ threshold?: string; spacing?: Responsive>; limit?: Responsive>; }; /** * Switch directly between horizontal and vertical layouts * at a given (container width-based) breakpoint or 'threshold' * * https://every-layout.dev/layouts/switcher */ export function Switcher({ spacing, threshold, limit, className, ...props }: SwitcherProps) { const { use: Comp = 'div' } = props; return ( ); }