# Application Filters and Search: Query Language Bar

Power-search bar with a structured query input, token-highlighted echo of parsed filters, a syntax reference panel, and a live result count.

- Page: https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/query-language-bar
- Collection: [Application](https://www.shadcn-ui-blocks.com/blocks/application-pro), Standard tier
- Group: [Filters and Search](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search)
- Created: 2026-06-15
- Preview image: https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/query-language-bar.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/application-pro-filters-and-search-query-language-bar
```

Needs an API key from a Pro or Team plan: add `@shadcn-ui-blocks` to the registries in components.json with the key as an `Authorization: Bearer` header. Setup: https://www.shadcn-ui-blocks.com/docs/shadcn-cli. The MCP server installs it without the setup: https://www.shadcn-ui-blocks.com/docs/mcp.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: badge, button
- Installs to: `@/components/blocks/application-pro/filters-and-search/query-language-bar`

## About this block

Query Language Bar is the power-search surface for Issues,
showing a mono input pre-filled with
`status:open assignee:me priority:high` and a parsed-token
echo beneath it where each filter splits into a dim key and
a bold value. A help-circle button opens a syntax reference
panel listing six operators from `created:>2026-06-01` down
to `label:bug`, with the tip that all conditions are ANDed.
The result count reads 14 issues match.

Tokens and help entries are two flat const arrays. The token
echo is why the bar earns the power-search label: users see
their query parsed back at them before they hit enter, which
catches typos silently.

## When to use

Reach for this block on any list page where users need more
precision than facet chips can give. Wire the input value to
your query parser and replace the static count with a live
results total.

A natural flow around it on an Application Pro page:

**Before**

- [App shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells)
- [Navigation](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation)

**After**

- [Data table](https://www.shadcn-ui-blocks.com/blocks/application-pro/data-tables)
- [Group by selector](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search)

## What you can display

One strong use is the issues power-search bar. Other query
bar surfaces:

- **Customer search.** `plan:pro country:us mrr:>500` as
  the starting expression.
- **Log explorer.** `level:error service:api-gateway` with
  a time-range operator.
- **Audit query.** `actor:avery@acme.com action:delete`
  against an event log.

> Tip: the token echo doubles as inline validation; show
> an unknown-key badge there before the user submits.

## More in Application Filters and Search

- [Advanced Filter Builder](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/advanced-filter-builder)
- [Applied Filters Summary](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/applied-filters-summary)
- [Column Filter Blueprint](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/column-filter-blueprint)
- [Date Range Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/date-range-panel)
- [Faceted Filter Bar](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/faceted-filter-bar)
- [Filter Chips Row](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/filter-chips-row)
- [Filter Funnel Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/filter-funnel-panel)
- [Find In View Bar](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/find-in-view-bar)
- [Group By Selector](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/group-by-selector)
- [Grouped Results Blueprint](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/grouped-results-blueprint)
- [Include Exclude Tags](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/include-exclude-tags)
- [Multi Facet Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/multi-facet-panel)
- [Multi Sort Builder](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/multi-sort-builder)
- [Quick Filter Toggles](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/quick-filter-toggles)
- [Range Filter Histogram](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/range-filter-histogram)
- [Recent And Saved Blueprint](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/recent-and-saved-blueprint)
- [Results Density Toggle](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/results-density-toggle)
- [Saved Filter Pills](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/saved-filter-pills)
- [Saved Searches Manager](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/saved-searches-manager)
- [Saved Views Tabs](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/saved-views-tabs)
- [Scope Selector Bar](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/scope-selector-bar)
- [Search Preview Pane](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/search-preview-pane)
- [Search Results Highlights](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/search-results-highlights)
- [Search With Recent](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/search-with-recent)
- [Sort Density Toolbar](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/sort-density-toolbar)
- [Sort Menu Blueprint](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/sort-menu-blueprint)
- [View Changes Bar](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/view-changes-bar)
- [Zero Results Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/zero-results-panel)
