ui/build/app-shell/app-identity.svelte
ui/build/app-shell/app-identity.svelte
Type Aliases
AppIdentity
type AppIdentity = object;Defined in: apps/website/.api-docs-entry/ui/build/app-shell/app-identity.svelte.d.ts:12
The one place a running application hands its identity to the shell chrome above it.
The compiler reads static identity out of app source, but translated titles and
descriptions (title={t('...')}) are not statically readable — and AppShell already
receives them as props. Without this channel every shelled app falls back to a
filename-derived label, a fallback icon, and no description in the hero, sidebar,
and finder, no matter what the shell was told.
The slot is deliberately narrow: translated identity and artwork, nothing else.
Properties
AppIdentitySlot
type AppIdentitySlot = object;Defined in: apps/website/.api-docs-entry/ui/build/app-shell/app-identity.svelte.d.ts:19
Properties
| Property | Type | Defined in |
|---|---|---|
current |
| AppIdentity | null |
apps/website/.api-docs-entry/ui/build/app-shell/app-identity.svelte.d.ts:20 |
Variables
getAppIdentitySlot
const getAppIdentitySlot: () =>
| AppIdentitySlot
| null;Defined in: apps/website/.api-docs-entry/ui/build/app-shell/app-identity.svelte.d.ts:28
null when no shell is above this component — an app mounted standalone in a test or a story.
Callers fall back to static metadata in that case rather than dropping identity on the floor.
Returns
| AppIdentitySlot
| null
setAppIdentitySlot
const setAppIdentitySlot: (slot) => AppIdentitySlot;Defined in: apps/website/.api-docs-entry/ui/build/app-shell/app-identity.svelte.d.ts:23
Opens the slot for everything rendered beneath the shell.
Parameters
| Parameter | Type |
|---|---|
slot |
AppIdentitySlot |