mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-03-25 18:13:48 -04:00
16 lines
377 B
TypeScript
16 lines
377 B
TypeScript
import clsx from 'clsx'
|
|
import {ComponentPropsWithoutRef, forwardRef} from 'react'
|
|
|
|
export const Col = forwardRef(function Col(
|
|
props: ComponentPropsWithoutRef<'div'>,
|
|
ref: React.Ref<HTMLDivElement>,
|
|
) {
|
|
const {children, className, ...rest} = props
|
|
|
|
return (
|
|
<div className={clsx(className, 'flex flex-col')} ref={ref} {...rest}>
|
|
{children}
|
|
</div>
|
|
)
|
|
})
|