manifold/web/components/layout/col.tsx
2022-03-24 12:03:17 -05:00

18 lines
369 B
TypeScript

import clsx from 'clsx'
import { CSSProperties, Ref } from 'react'
export function Col(props: {
children?: any
className?: string
style?: CSSProperties
ref?: Ref<HTMLDivElement>
}) {
const { children, className, style, ref } = props
return (
<div className={clsx(className, 'flex flex-col')} style={style} ref={ref}>
{children}
</div>
)
}