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 {
|
||||
children?: any
|
||||
alignment?: 'dasig-page-row' | 'dasig-page-column'
|
||||
alignment?: 'row' | 'column'
|
||||
}
|
||||
|
||||
export default (props: Props) => {
|
||||
return (
|
||||
<>
|
||||
<Show when={props.alignment}>
|
||||
<main class={props.alignment}>{props.children}</main>
|
||||
<main class={`dasig-page-${props.alignment}`}>{props.children}</main>
|
||||
</Show>
|
||||
<Show when={!props.alignment}>
|
||||
<main class="dasig-page">{props.children}</main>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue