Something went wrong. Try again.
Monorepo for Tangled forked from tangled.org/core
Something went wrong. Try again.
1234567891011121314151617181920212223242526<script lang="ts"> import type { Snippet } from "svelte"; import type { HTMLAttributes } from "svelte/elements";
/** * A page section: the vertical rhythm (--section-y) and an anchor id. Width is the * Container's job; a section usually wraps one. */ interface Props extends HTMLAttributes<HTMLElement> { children: Snippet; }
let { children, class: className, ...rest }: Props = $props();</script>
<section {...rest} class={["l-section", className]}> {@render children()}</section>
<style> .l-section { position: relative; padding-block: var(--section-y); }</style>