
Examples
Using filters

Using where

Using Inline SQL
Attributes
The id of the input tabs to be used in a
filters propName of the table to query
Array of filter IDs to apply when querying for options
Column name to use as the value for each option, and the column to filter by when this input tabs’
id is used in the filters prop of a chartColumn name to use as the label for each option
Initial selected value (single selection only)
Visual style variant: “default” for underline style, “well” for button-style tabsAllowed values:
defaultwell
Whether the tabs should take the full width of their container
Horizontal alignment of tabs. Note: align right only affects the default variant.Allowed values:
leftright
Automatically select the first option when the component loads (defaults to true)
Column name(s) with optional direction (e.g. “column_name”, “column_name desc”)
Custom SQL WHERE condition to apply to the query. For date filters, use date_range instead.
Set the width of this component (in percent) relative to the page width
Using the Filter Variable
Reference this filter using{{filter_id}}. The value returned depends on where you use it.
| Context | Default Property | No Selection | Result |
|---|---|---|---|
| Inline SQL query | .selected | '' | 'Electronics' |
where attribute | .selected | '' | 'Electronics' |
| Text / Markdown | .literal | Electronics |
Available Properties
You can also access specific properties using{{filter_id.property}}:
.filter
Returns a complete SQL filter expression ready to use in WHERE clauses. Returnstrue when no value is selected.
category = 'Electronics'
.selected
Returns the selected value wrapped in quotes, suitable for SQL comparisons. Returns an empty string when no value is selected.'Electronics'
.literal
Returns the raw unescaped selected value, useful for display in text or dynamic column selection.Electronics
.label
Returns the display label for the selected option. Falls back to the value if no label is defined.Electronics
.fmt
Returns the format string associated with the selected option. Useful for dynamically updating chart formatting.usd

