18 lines
388 B
TypeScript
18 lines
388 B
TypeScript
import type { JSXElement } from 'solid-js'
|
|
import './Column.sass'
|
|
|
|
interface Props {
|
|
children: JSXElement
|
|
content?: 'top' | 'center' | 'right' | 'split' | 'spaced'
|
|
gap?: number
|
|
}
|
|
|
|
export default (props: Props) => {
|
|
return (
|
|
<>
|
|
<section class={`column-${props.content || 'center'}`} style={`gap: ${props.gap}rem`}>
|
|
{props.children}
|
|
</section>
|
|
</>
|
|
)
|
|
}
|