mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-02-18 14:55:18 -05:00
16 lines
351 B
TypeScript
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>
|
|
)
|
|
})
|