Files
Compass/web/components/layout/col.tsx
2025-08-27 21:30:05 +02:00

16 lines
351 B
TypeScript

import clsx from 'clsx'
import { forwardRef } from 'react'
export const Col = forwardRef(function Col(
props: JSX.IntrinsicElements['div'],
ref: React.Ref<HTMLDivElement>
) {
const { children, className, ...rest } = props
return (
<div className={clsx(className, 'flex flex-col')} ref={ref} {...rest}>
{children}
</div>
)
})