Composition / foldkit-builder
Layers
const · packages/builder/src/index.ts:49
const Layers: Bundle.Declared<Bundle.Bundle<"TreeNavigation", { readonly openByDefault: boolean; }, { readonly current: string | null; readonly toggled: readonly string[]; }, { readonly _tag: "Opened"; readonly id: string; } | { readonly _tag: "Closed"; readonly id: string; } | { readonly _tag: "Focused"; readonly id: string; }, never, never, never, NoView, {}, { focus: (model: TreeNavigation.Model, id: string) => Readonly<{ model: { readonly current: string | null; readonly toggled: readonly string[]; }; commands?: Commands<{ readonly _tag: "Opened"; readonly id: string; } | { readonly _tag: "Closed"; readonly id: string; } | { readonly _tag: "Focused"; readonly id: string; }, never>; outMessage?: never; }>; open: (model: TreeNavigation.Model, id: string) => Readonly<{ model: { readonly current: string | null; readonly toggled: readonly string[]; }; commands?: Commands<{ readonly _tag: "Opened"; readonly id: string; } | { readonly _tag: "Closed"; readonly id: string; } | { readonly _tag: "Focused"; readonly id: string; }, never>; outMessage?: never; }>; close: (model: TreeNavigation.Model, id: string) => Readonly<{ model: { readonly current: string | null; readonly toggled: readonly string[]; }; commands?: Commands<{ readonly _tag: "Opened"; readonly id: string; } | { readonly _tag: "Closed"; readonly id: string; } | { readonly _tag: "Focused"; readonly id: string; }, never>; outMessage?: never; }>; toggle: (model: TreeNavigation.Model, id: string) => Readonly<{ model: { readonly current: …;The layers panel's keyboard focus and which rows are open: a tree that starts open.
In the guides
- The keyboard, the layers, and what the editor saysComposition / foldkit-builder
- Your own layoutComposition / foldkit-mixins-builder