Initial commit

This commit is contained in:
Patrick Alvin Alcala 2026-02-11 18:33:42 +08:00
commit 7628b18255
94 changed files with 6386 additions and 0 deletions

24
@dasig/components/Row.tsx Normal file
View file

@ -0,0 +1,24 @@
import '../styles/Row.sass'
import { Show, type JSXElement } from 'solid-js'
interface Props {
children: JSXElement
content?: 'left' | 'center' | 'right' | 'split' | 'spaced' | 'even'
gap?: number
}
export default (props: Props) => {
return (
<>
<Show when={props.gap}>
<section class={`dasig-row-${props.content || 'center'}`} style={`gap: ${props.gap}rem`}>
{props.children}
</section>
</Show>
<Show when={!props.gap}>
<section class={`dasig-row-${props.content || 'center'}`}>{props.children}</section>
</Show>
</>
)
}