Added flexbox components

This commit is contained in:
Patrick Alvin Alcala 2025-08-29 10:23:41 +08:00
parent 5fda80674f
commit c2d99f8b1b
4 changed files with 121 additions and 0 deletions

View file

@ -0,0 +1,18 @@
import './Row.sass'
// import { Switch, Match } from 'solid-js'
interface Props {
children: any
content: 'left' | 'center' | 'right' | 'split' | 'spaced' | 'even'
gap?: number
}
export default (props: Props) => {
return (
<>
<div class={props.content} style={`gap: ${props.gap}rem`}>
{props.children}
</div>
</>
)
}