2021-12-14 00:28:37 +00:00
|
|
|
import clsx from 'clsx'
|
2022-05-26 22:22:44 +00:00
|
|
|
import { CSSProperties, Ref, ReactNode } from 'react'
|
2021-12-14 00:28:37 +00:00
|
|
|
|
2022-01-25 20:47:25 +00:00
|
|
|
export function Col(props: {
|
2022-05-26 22:22:44 +00:00
|
|
|
children?: ReactNode
|
2022-01-25 20:47:25 +00:00
|
|
|
className?: string
|
|
|
|
style?: CSSProperties
|
2022-03-24 17:03:08 +00:00
|
|
|
ref?: Ref<HTMLDivElement>
|
2022-01-25 20:47:25 +00:00
|
|
|
}) {
|
2022-03-24 17:03:08 +00:00
|
|
|
const { children, className, style, ref } = props
|
2021-12-10 14:56:17 +00:00
|
|
|
|
2022-01-25 20:47:25 +00:00
|
|
|
return (
|
2022-03-24 17:03:08 +00:00
|
|
|
<div className={clsx(className, 'flex flex-col')} style={style} ref={ref}>
|
2022-01-25 20:47:25 +00:00
|
|
|
{children}
|
|
|
|
</div>
|
|
|
|
)
|
2021-12-10 14:56:17 +00:00
|
|
|
}
|