Skip to main content

Documentation Index

Fetch the complete documentation index at: https://quill.co/docs/llms.txt

Use this file to discover all available pages before exploring further.

App.tsx
import { QuillProvider, Dashboard } from "@quillsql/react";

function App() {
  return (
    <QuillProvider
      tenants={[{ tenantField: "customer_id", tenantIds: [2] }]}
      publicKey={process.env.QUILL_PUBLIC_KEY}
    >
      <Dashboard name="Transactions" />
    </QuillProvider>
  );
}
Dynamically displays a filterable grid of charts, metrics, and tables with live data from your database. Once implemented, Quill lets you perform zero-downtime, zero-code updates to your dashboard on an org-level as well as company-wide.
Make sure QuillProvider is a parent of the Dashboard component.
Don’t have a dashboard name yet? Learn how to create a dashboard in the Quill BI Platform to get started.

Examples

Edit [Ant Design] Quill React Components
import { Dashboard } from "@quillsql/react";
import { AntDateRangePickerComponent } from "./ui/ant/DateRangePickerComponent";
import { AntTableComponent } from "./ui/ant/TableComponent";
import { AntSelectComponent } from "./ui/ant/SelectComponent";
import { AntChartComponent } from "./ui/ant/ChartComponent";
import { AntMetricComponent } from "./ui/ant/MetricComponent";

export function AntDashboard() {
  return (
    <Dashboard
      name="Transactions"
      containerStyle={dashboardStyles}
      DateRangePickerComponent={AntDateRangePickerComponent}
      SelectComponent={AntSelectComponent}
      TableComponent={AntTableComponent}
      MetricComponent={AntMetricComponent}
      ChartComponent={AntChartComponent}
      FilterContainerComponent={AntFilterContainerComponent}
    />
  );
}

Props

name
string
required
The name of the dashboard you created in the Quill BI Platform.
MetricComponent
(props: QuillReportProps) => JSX.Element
A component that wraps a report for ‘metric’ chart types.
ChartComponent
(props: QuillReportProps) => JSX.Element
A component that wraps a report for non-metric, non-table chart types.
TableComponent
(props: QuillReportProps) => JSX.Element
A component that wraps a report for ‘table’ chart types.
SelectComponent
(props: SelectComponentProps) => JSX.Element
A select component.
DateRangePickerComponent
(props: DateRangePickerComponentProps) => JSX.Element
A date range picker component.
DashboardSectionComponent
(props: DashboardSectionComponentProps) => JSX.Element
A component that wraps each dashboard section.Each dashboard is grouped into three sections: metrics, charts, and tables (in that order). Some sections may be empty, in which case they are omitted.
DashboardSectionContainerComponent
(props: DashboardSectionContainerComponentProps) => JSX.Element
A component that wraps all dashboard sections.
FilterContainerComponent
(props: FilterContainerComponentProps) => JSX.Element
A component that wraps the row of dashboard filters.
EmptyDashboardComponent
() => JSX.Element
A fallback component displayed when an active dashboard has no reports.
onClickReport
(report: QuillReport) => void
Callback function that fires when a report is clicked. A common use case is navigating to a new page based on the report’s id. A dashboard is composed of a list of reports that could be metrics, charts, or tables.
See the API Reference for a QuillReport here.
onChangeLoading
(isLoading: boolean) => void
A callback that is fired when the loading status of the dashboard changes.
hideFilters
boolean
default:false
Whether to hide dashboard filters.
hideDateRangeFilter
boolean
default:false
Whether the date range filters on the dashboard are hidden.
hideXAxis
boolean
default:false
Whether to hide the xAxis for all charts on this dashboard.
hideYAxis
boolean
default:false
Whether to hide the yAxis for all charts on this dashboard.
hideCartesianGrid
boolean
default:false
Whether to hide the cartesian grid for all charts on this dashboard.
comparisonLineStyle
'solid' | 'dashed'
default:"solid"
The line style for comparison ranges on all line charts on this dashboard.
className
string
Applies the following classes to the ReportBuilder.This container is the parent of all the filtering buttons as well as any dashboard sections. This can be useful for TailwindCSS-style classname strings.
containerStyle
React.CSSProperties
The CSS styles that wrap the dashboard container.This container is the parent of all the filtering buttons as well as any dashboard sections.
chartContainerStyle
React.CSSProperties
The styles for the chart container.

QuillReport

The full QuillReport schema is documented on the Types reference page.