fwt/fwt/components/Column/Column.tsx

17 lines
313 B
TypeScript

import './Column.sass'
interface Props {
children: HTMLElement
content: 'top' | 'center' | 'right' | 'split' | 'spaced'
gap?: number
}
export default (props: Props) => {
return (
<>
<div class={props.content} style={`gap: ${props.gap}rem`}>
{props.children}
</div>
</>
)
}