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

Reports · Components

SavedReports

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

Public export

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

Props

NameTypeRequiredDescription
clientRuntimeReportsClientNoNot described
reportHref(id: string) => stringNoNot described
authorLabel(userId: string) => string | undefinedNoHost-owned identity projection; report transport never expands users.
sourcesreadonly ReportSourceInfo[]NoThe report sources by label and fields (`reports.runtime.sources`).
variant'page' | 'section'No`page` (default) or `section`, the Reports section page's widget.
limitnumberNoMost cards shown (and run); the section shows its first few.
listHrefstringNoThe Saved reports page, for the section's "View all".
onnewreport() => voidNoReplace "New report" asking the page's assistant.
localestringNoBCP 47 locale for dates, numbers and relative times; default `en`.
currencystringNoISO 4217 code that formats currency measures on the cards; default `USD`.

Bindable state

This component has no bindable public state.

Callback events

  • onnewreport() => void

Examples and explanation