Updated
This commit is contained in:
parent
b5e92165c8
commit
0b4a6856ec
1 changed files with 2 additions and 2 deletions
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue