ocbo-esign/src/components/Column/Column.tsx

19 lines
440 B
TypeScript

import './Column.sass'
import type { JSXElement } from 'solid-js'
interface Props {
children: JSXElement
content?: 'top' | 'center' | 'bottom' | 'split' | 'spaced'
gap?: number
padding?: string
}
export default (props: Props) => {
return (
<>
<section class={`column-${props.content || 'center'}`} style={`gap: ${props.gap}rem; padding: ${props.padding || 0}`}>
{props.children}
</section>
</>
)
}