API Reference
BreadcrumbMeta
Each +page.svelte can export a breadcrumb constant of type BreadcrumbMeta. It's an async function that receives the current page and returns a {label, icon?} object.
Static label
Return a fixed string — the simplest pattern.
Dynamic from load data
Read the label from page.data populated by a layout or page load function.
Remote function
Call a server-side remote function inside the resolver — works with SSR and doesn't block hydration.
Optimistic update
Combine a query with a command and .withOverride() for instant client-side updates.
No breadcrumb
Omit the export entirely — the route is simply skipped in the breadcrumb trail.
Remote function breadcrumb
The label for this page is fetched server-side via a remote function — useful when the title isn't available in load data.