component PortalDashboard { outputs { action(payload: { item: string | number | boolean | null | object; value: string | number | boolean; index: number }) navigate(payload: { item: string | number | boolean | null | object; value: string | number | boolean; index: number }) } props { size: string = "default" color: string = "primary" eyebrow: string = "Overview" eyebrowKey: string = "" title: string = "Dashboard" titleKey: string = "" description: string = "" descriptionKey: string = "" userName: string = "" metrics: unknown[] = [] actions: unknown[] = [] updates: unknown[] = [] tasks: unknown[] = [] class: string = "" } functions { client function chooseAction(item, index) { output.action({ item: item, value: item.value || "", index: index }) } client function chooseNavigation(item, index) { output.navigate({ item: item, value: item.value || "", index: index }) } } view {
{#if eyebrowKey}{eyebrow}{/if} {#if !eyebrowKey}{eyebrow}{/if}

{#if titleKey}{title}{/if} {#if !titleKey}{title}{/if} {#if userName}, {userName}{/if}

{#if descriptionKey}

{description}

{/if} {#if !descriptionKey && description}

{description}

{/if}
{#each metrics as item}
{item.label}{item.value}{#if item.detail}{item.detail}{/if}
{/each}
Shortcuts

Quick actions

Priority

Tasks requiring attention

Latest

Recent updates

{#each updates as item}
{item.label}{#if item.detail}

{item.detail}

{/if}{item.time || ''}
{/each}
} }