Skip to main content
App.tsx
Allows non-technical users to build SQL queries using either UI or AI and then edit them on the fly. Once users have constructed a query they like, they can click a button and add that report to their dashboard or export it as a CSV.
Make sure QuillProvider is a parent of the ReportBuilder component.

Examples

Edit [Ant Design] Quill React Components
Ant Design

Prefetch data from a particular table

You can pass an initialTableName to have the report builder automatically load data from a particular table in your schema.
App.tsx

Edit an existing report

You can pass a reportId to have the report builder load the metadata for a pre-existing report. This might be useful if you want to allow your end users to edit the reports they created.
App.tsx

Query all views in your Quill schema

By default, the Quill Report Builder will query all tables in your schema and new reports will be created upon completion.
App.tsx

Props

string
The default table name to show when first loading the ReportBuilder.
See the prefetch data example to see an example of how this is used.
string
Sets the dashboard of a report created in the report builder.
Checkout our UI examples to see how this is used.
string
Sets the dashboard section of a report created in the report builder.
Checkout our UI examples to see how this is used.
(props: ButtonComponentProps) => JSX.Element
A primary button component.
(props: ButtonComponentProps) => JSX.Element
A secondary button component.
(props: DeleteButtonComponentProps) => JSX.Element
A small delete button used to click out of things. Usually an “X” icon.
(props: TextInputComponentProps) => JSX.Element
A input element for getting text from the user.
(props: ModalComponentProps) => JSX.Element
A modal component.
(props: ModalComponentProps) => JSX.Element
A modal component.
(props: SelectComponentProps) => JSX.Element
A select component.
(props: TableComponentProps) => JSX.Element
A table component.
(props: PopoverComponentProps) => JSX.Element
A popover component.
(props: FilterPopoverComponentProps) => JSX.Element
A popover component for filters created in the report builder.
(props: SortPopoverComponentProps) => JSX.Element
A popover component for sort items created in the report builder.
(props: LimitPopoverComponentProps) => JSX.Element
A popover component for limits created in the report builder.
(props: TabsComponentProps) => JSX.Element
A small navigation menu used to switch between two or more states.
(props: CheckboxComponentProps) => JSX.Element
A checkbox component.
(props: SidebarComponentProps) => JSX.Element
A container for the left sidebar.
(props: ContainerComponentProps) => JSX.Element
A container for the main content (everything right of the sidebar).
() => JSX.Element
A component to show while the query results are loading.
(props: SelectColumnComponentProps) => JSX.Element
A component to show selected columns.
(props: DraggableColumnComponentProps) => JSX.Element
A draggable component used to reorder columns.
(props: SidebarHeadingComponentProps) => JSX.Element
A heading element for the sidebar.
(props: CardComponentProps) => JSX.Element
A card component used as a dismissable container of pivot information.
(props: LabelComponentProps) => JSX.Element
A label component.
(props: HeaderComponentProps) => JSX.Element
A header component.
(props: TextComponentProps) => JSX.Element
A simple text component.
(props: { label: string }) => JSX.Element
A sub-header component describes a group of inputs.
(props: { children: ReactNode }) => JSX.Element
A container for each row of inputs for the ChartBuilder form.
(props: { children: ReactNode }) => JSX.Element
A container for vertically-stacked rows of inputs for the ChartBuilder form.
(props: { children: ReactNode }) => JSX.Element
A container for each row of inputs for the pivot form.
(props: { children: ReactNode }) => JSX.Element
A container for vertically-stacked rows of inputs for the pivot form.
(props: { children: ReactNode }) => JSX.Element
A container for vertically-stacked sections of the chart builder form.
(props: { children: ReactNode }) => JSX.Element
A component that displays error messages.
() => JSX.Element
A component to show when no columns match the user’s query.
boolean
default:false
Whether the ReportBuilder is in admin mode (default: false).
boolean
default:true
Whether the ReportBuilder’s AI features are enabled (default: true).
boolean
Whether the PivotModal’s AI features are enabled.
boolean
Whether to show the table format options on the ChartBuilder form.
CSSProperties
Applies the following classes to the ReportBuilder.This can be useful for TailwindCSS-style classname strings.
CSSProperties
Custom styling properties for the ReportBuilder’s top-level container.
string
A report id that the Report Builder will query from and modify.
See the report id example to see an example of how this is used.
(report: QuillReport) => void
A callback function that will trigger when a new report is created.
(report: QuillReport) => void
A callback function that will trigger when a existing report is edited.
boolean
default:true
Whether to hide the copy SQL button.
boolean
default:true
Whether the chart builder is in horizontal view mode.Horizontal view mode is where the chart and table are displayed on the left and the editing form is displayed on the right, rather than being stacked vertically.