18 lines
369 B
TypeScript
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>
|
|
)
|
|
}
|