2025-03-19 17:30:36 +00:00
|
|
|
<script lang="ts">
|
2026-02-13 21:05:17 +00:00
|
|
|
import cx from "classnames"
|
2025-03-19 17:30:36 +00:00
|
|
|
import type {Snippet} from "svelte"
|
|
|
|
|
|
2026-07-27 22:38:23 +00:00
|
|
|
type Props = {
|
2025-03-19 17:30:36 +00:00
|
|
|
element?: Element
|
|
|
|
|
children?: Snippet
|
2026-06-24 20:56:53 +00:00
|
|
|
noPad?: boolean
|
2025-03-19 17:30:36 +00:00
|
|
|
[key: string]: any
|
|
|
|
|
}
|
|
|
|
|
|
2026-06-24 20:56:53 +00:00
|
|
|
let {children, element = $bindable(), noPad, ...props}: Props = $props()
|
2026-02-13 21:05:17 +00:00
|
|
|
|
2026-04-08 17:10:20 +00:00
|
|
|
const className = $derived(
|
2026-06-24 20:56:53 +00:00
|
|
|
cx("page__content scroll-container", props.class, {"page__content--no-pad": noPad}),
|
2026-04-08 17:10:20 +00:00
|
|
|
)
|
2025-03-19 17:30:36 +00:00
|
|
|
</script>
|
|
|
|
|
|
2026-02-13 21:05:17 +00:00
|
|
|
<div {...props} bind:this={element} data-component="PageContent" class={className}>
|
2025-03-19 17:30:36 +00:00
|
|
|
{@render children?.()}
|
|
|
|
|
</div>
|