20 lines
460 B
Svelte
20 lines
460 B
Svelte
<script lang="ts">
|
|
import type {Snippet} from "svelte"
|
|
|
|
interface Props {
|
|
element?: Element
|
|
children?: Snippet
|
|
[key: string]: any
|
|
}
|
|
|
|
let {children, element = $bindable(), ...props}: Props = $props()
|
|
</script>
|
|
|
|
<div
|
|
{...props}
|
|
bind:this={element}
|
|
data-component="PageContent"
|
|
class="scroll-container cw cb fixed top-[calc(var(--sait)+3rem)] z-feature overflow-y-auto overflow-x-hidden {props.class}">
|
|
{@render children?.()}
|
|
</div>
|