This commit is contained in:
Patrick Alvin Alcala 2026-01-30 19:18:25 +08:00
parent b5e92165c8
commit 0b4a6856ec

View file

@ -3,14 +3,14 @@ import { Show } from 'solid-js'
interface Props { interface Props {
children?: any children?: any
alignment?: 'dasig-page-row' | 'dasig-page-column' alignment?: 'row' | 'column'
} }
export default (props: Props) => { export default (props: Props) => {
return ( return (
<> <>
<Show when={props.alignment}> <Show when={props.alignment}>
<main class={props.alignment}>{props.children}</main> <main class={`dasig-page-${props.alignment}`}>{props.children}</main>
</Show> </Show>
<Show when={!props.alignment}> <Show when={!props.alignment}>
<main class="dasig-page">{props.children}</main> <main class="dasig-page">{props.children}</main>