dasig-solid/frontend/@dasig/components/Column.tsx
2025-11-26 10:56:07 +08:00

18 lines
398 B
TypeScript

import type { JSXElement } from 'solid-js';
import '../styles/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>
</>
)
}