Skip to content

web


web / components/ui/sidebar/context.svelte / SidebarStateProps

Type Alias: SidebarStateProps

SidebarStateProps = object

Defined in: components/ui/sidebar/context.svelte.ts:7

Properties

open

open: Getter<boolean>

Defined in: components/ui/sidebar/context.svelte.ts:13

A getter function that returns the current open state of the sidebar. We use a getter function here to support bind:open on the Sidebar.Provider component.


setOpen()

setOpen: (open) => void

Defined in: components/ui/sidebar/context.svelte.ts:20

A function that sets the open state of the sidebar. To support bind:open, we need a source of truth for changing the open state to ensure it will be synced throughout the sub-components and any bind: references.

Parameters

open

boolean

Returns

void