Components
Choose what your SQL renders. Explore the parameters and live examples for each component.
Categories
Display data
-
big_number
Highlight a metric with a trend or progress indicator.
2 examples -
card
Arrange records in cards with images, links, or embedded content.
5 examples -
carousel
Show a slideshow of images with optional captions and controls.
2 examples -
chart
Plot query results as line, area, bar, or pie charts.
16 examples -
datagrid
Lay out labeled values in a compact grid.
3 examples -
list
Present rows as a vertical list with optional links and icons.
4 examples -
map
Plot locations and geographic shapes on an interactive map.
4 examples -
table
Turn query results into a sortable, searchable table.
10 examples -
timeline
Arrange events along a vertical timeline.
2 examples -
tracking
Show a sequence of activity or status changes as colored segments.
2 examples
Forms and feedback
-
alert
Draw attention to a message with a color and an icon.
5 examples -
Follow a link, download a file, or submit a form.
9 examples -
empty_state
Explain an empty view and offer the reader a next step.
2 examples -
form
Collect input with text fields, file uploads, and other controls.
14 examples -
login
Display a sign-in form for a username and password.
2 examples -
modal
Open a dialog over the page for details, forms, or media.
4 examples -
toast
Show a brief notification above the page.
5 examples
Navigation
-
Link the current page to its parent pages.
2 examples -
facet
Let readers choose filters for a dataset.
2 examples -
pagination
Link to other pages of a query result.
6 examples -
status_bar
Show status messages and links in a horizontal bar.
1 example -
steps
Mark progress through the stages of a task.
2 examples -
tab
Switch between related pages using labeled tabs.
2 examples
Page layout and content
-
code
Display source code with syntax highlighting.
1 example -
columns
Compare plans, features, or options in side-by-side cards.
2 examples -
divider
Separate sections with a horizontal rule.
5 examples -
foldable
Let readers expand individual sections to see their contents.
2 examples -
hero
Introduce a page with a headline, media, and a call to action.
3 examples -
html
Insert your own HTML markup into the page.
3 examples -
shell
Set the page layout, navigation, branding, and footer.
5 examples -
text
Write paragraphs using plain text or Markdown.
4 examples -
title
Add a heading and choose its level.
2 examples
HTTP responses
-
Set a cookie in the visitor's browser.
1 example -
csv
Export query rows as a downloadable CSV file.
2 examples -
download
Send a file directly to the visitor.
3 examples -
http_header
Set response headers for caching, content types, and more.
3 examples -
json
Return query results as JSON for an API.
4 examples -
redirect
Send the visitor to another URL.
1 example -
rss
Publish an RSS feed from query results.
1 example -
status_code
Set the HTTP status code returned by a page.
1 example
Server logic
-
authentication
Restrict access by checking a password against a stored hash.
1 example -
debug
Inspect the values passed to a component as JSON.
2 examples -
dynamic
Render SQLPage components described by JSON data.
5 examples -
log
Write a message to the SQLPage server log.
1 example