Overview
Use QueryBuilder for compound filters that cannot be expressed clearly by a compact filter bar.
Portfolio conditions
Advanced filters
Match all conditions
Anatomy
Matching logic coordinates repeatable field, operator, value, and removal controls.
- 1Heading
Names the expression.
- 2Conjunction
Matches all or any rules.
- 3Condition
Combines field, operator, and value.
- 4Add control
Appends a rule.
- 5Remove control
Deletes one rule.
When to use
Recommended
- Build compound queries
Combine explicit conditions.
- Govern expressions
Limit operators by field.
- Review logic
Keep the full expression visible.
When not to use
Avoid
- Do not filter by one value
Use Select.
- Do not hide common filters
Use FilterBar.
- Do not expose raw syntax
Reserve code for experts.
Variants
Outlined
Bounded surface.
Filled
Tonal surface.
Raised
Standalone composer.
States
QueryBuilder reflects query composition state while users build rules.
| State | Trigger | Visual response | Interaction |
|---|---|---|---|
| Empty | No rules | Add control | Add condition |
| Editing | Rules change | Updated controls | Compose |
| Incomplete | Value missing | Validation | Complete rule |
| Loading | Fields resolving | Status | Disabled |
Behavior
Rules
Stable identity.
Matching
All is AND; any is OR.
Field changes
Reset dependent values.
Governance
Definitions constrain input.
Accessibility
| Key | Action |
|---|---|
| Tab | Moves through controls. |
| Arrow keys | Changes choices. |
| EnterSpace | Adds or removes rules. |
- Label every condition control.
- State matching logic in text.
- Connect validation to values.
- Name removal actions by condition.
Content guidelines
Use fields and operators that are immediately understandable by your policy owners.
Use domain fields
Match product labels.
Renewal date
Write operators as phrases
Prefer readable language.
is before
Format values
Respect data type.
₹50,000
Examples
Use query composition examples that match governance and reporting rules.
Enterprise saved conditions
Build a governed rule set users can review and reproduce.
Advanced filters
Match all conditions
Props / API
Props