import {forwardRef, type PropsWithChildren, type ForwardedRef} from 'react'; import type { Stack as StackElement, StackProperties, } from '@watching/clips/elements'; import {ViewProps} from './View.tsx'; import {useCustomElementProperties} from './shared.ts'; export interface StackProps extends PropsWithChildren< Omit, 'spacing' | keyof ViewProps> >, Omit { ref?: ForwardedRef; spacing?: StackProperties['spacing'] | boolean; } declare module 'react' { namespace JSX { interface IntrinsicElements { 'ui-stack': StackProps; } } } export const Stack = forwardRef( function Stack(props, ref) { const wrapperRef = useCustomElementProperties(props, ref); return ; }, );