s-m-r-t
Open the s-m-r-t source on GitHub Switch to dark color scheme
← All UI components

Reports · Components

SavedReportsWidget

No summary has been written for SavedReportsWidget. Everything below is generated from the declaration shipped in 0.57.40 and describes the real contract.

Public export

typescript
import { SavedReportsWidget } from '@happyvertical/smrt-reports/svelte';
Import path
@happyvertical/smrt-reports/svelte
Props
9
Props described
9 of 9
Bindable state
0
Callback events
0
Verified release
0.57.40

Props

NameTypeRequiredDescription
optionsRecord<string, string | number | boolean | null>NoThe widget's options from the host's layout; `limit` (a positive number) caps the cards shown, default 6.
titlestringNoThe widget's heading as set in the host's layout. This widget does not render it; the host places it.
localestringNoBCP 47 locale for dates, numbers and relative times; default `en`.
clientRuntimeReportsClientNoA host-owned transport; omitted, the app's shared browser client.
reportHref(id: string) => stringNoThe page of one report by id; default `/reports/<id>`.
listHrefstringNoThe Saved reports page ("View all"); default `/reports`.
sourcesreadonly ReportSourceInfo[]NoThe report sources by label and fields (`reports.runtime.sources`), for each card's description line.
authorLabel(userId: string) => string | undefinedNoHost-owned identity projection naming who saved a report; report transport never expands users.
currencystringNoISO 4217 code that formats currency measures; default `USD`.

Bindable state

This component has no bindable public state.

Callback events

This component declares no callback event props.

Examples and explanation