ui/build/layout/imposter.svelte
ui/build/layout/imposter.svelte
Interfaces
ImposterProps
Defined in: apps/website/.api-docs-entry/ui/build/layout/imposter.svelte.d.ts:6
Extends
Properties
as?
optional as?: any;Defined in: apps/website/.api-docs-entry/ui/build/layout/imposter.svelte.d.ts:7
children?
optional children?: Snippet<[]>;Defined in: apps/website/.api-docs-entry/ui/build/layout/imposter.svelte.d.ts:33
Absent for a purely decorative layer (a track line, a hit area).
contain?
optional contain?: boolean;Defined in: apps/website/.api-docs-entry/ui/build/layout/imposter.svelte.d.ts:31
Keep the layer inside the parent: never larger than it, scrolling if it must.
layer?
optional layer?: ImposterLayer;Defined in: apps/website/.api-docs-entry/ui/build/layout/imposter.svelte.d.ts:24
The stacking layer. under sits beneath later siblings (a decorative backdrop), raised
above them, overlay above page chrome (a drag preview, a table-of-contents panel),
modal above everything (a full-screen takeover).
offset?
optional offset?: ImposterOffset;Defined in: apps/website/.api-docs-entry/ui/build/layout/imposter.svelte.d.ts:18
Distance from the edges it is pinned to: sm (0.5rem) for a corner or an edge-centred
control, none for a bar, a strip or fill, which run to the edge by default.
placement?
optional placement?: ImposterPlacement;Defined in: apps/website/.api-docs-entry/ui/build/layout/imposter.svelte.d.ts:13
Where the layer sits over its positioned (relative) parent. fill covers it (a scrim, a
camera guide); top/bottom are full-width bars, start/end full-height strips; the
corners pin a badge or control; center-start/center-end centre it on an edge.
position?
optional position?: "fixed" | "absolute" | "sticky";Defined in: apps/website/.api-docs-entry/ui/build/layout/imposter.svelte.d.ts:29
absolute pins to the parent; fixed to the viewport; sticky stays in flow and sticks to
its scrollport's edge — a table header, a rail.
Type Aliases
default
type default = ReturnType<typeof default>;Defined in: apps/website/.api-docs-entry/ui/build/layout/imposter.svelte.d.ts:35
ImposterLayer
type ImposterLayer = "under" | "raised" | "overlay" | "modal";Defined in: apps/website/.api-docs-entry/ui/build/layout/imposter.svelte.d.ts:5
ImposterOffset
type ImposterOffset = "none" | "xs" | "sm" | "md";Defined in: apps/website/.api-docs-entry/ui/build/layout/imposter.svelte.d.ts:4
ImposterPlacement
type ImposterPlacement =
| "center"
| "fill"
| "top"
| "bottom"
| "start"
| "end"
| "top-start"
| "top-end"
| "bottom-start"
| "bottom-end"
| "center-start"
| "center-end";Defined in: apps/website/.api-docs-entry/ui/build/layout/imposter.svelte.d.ts:3
Variables
default
const default: Component;Defined in: apps/website/.api-docs-entry/ui/build/layout/imposter.svelte.d.ts:35