Home / Type/ ReportWidgetProps Type — supabase Architecture

ReportWidgetProps Type — supabase Architecture

Architecture documentation for the ReportWidgetProps type/interface in ReportWidget.tsx from the supabase codebase.

Entity Profile

Source Code

apps/studio/components/interfaces/Reports/ReportWidget.tsx lines 11–29

export interface ReportWidgetProps<T = any> {
  data: T[]
  title: string
  description?: string
  error?: string | Object | null
  tooltip?: string | ReactNode
  className?: string
  contentClassName?: string
  headerClassName?: string
  renderer: (props: ReportWidgetRendererProps) => ReactNode
  append?: (props: ReportWidgetRendererProps) => ReactNode
  // for overriding props, such as data
  appendProps?: Partial<ReportWidgetRendererProps>
  // omitting params will hide the "View in logs explorer" button
  params?: BaseReportParams | LogsEndpointParams
  queryType?: ReportQueryType
  isLoading: boolean
  resolvedSql?: string
}

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free