reopt design
DocsExploreTemplatesCanvasToolsPricing
Login
opt-uiopt-chartsopt-datagridopt-editoropt-calendaropt-filemanageropt-chatopt-shellbrandapp-ui
Overview205Core74Shells99Blocks32
QueryBar
reopt designreopt design

A design system for the AI era

  • Docs
  • Pricing
  • Releases
  • About
  • Contact
  • Terms of Service
  • Privacy Policy

reopt Inc.Business registration no. 217-88-02453contact@reopt.ai

© 2026 reopt Inc. All rights reserved.

QueryBar

Shell

Combine search and filters with field:value clauses, negation, OR groups, comparisons, autocomplete, and editable chips.

Related docs
bun add @reopt-ai/opt-ui
Install and import
bash
bun add @reopt-ai/opt-ui
tsx
import { QueryBar } from "@reopt-ai/opt-ui";

Live preview

Change the width and theme, then interact with the components.

100%

One control for search and filters

Type a field name for completions, then a value. Enter commits; Escape reverts. The parsed value filters the same deterministic events a server or live tail would evaluate with the server-safe @reopt-ai/opt-ui/query entry.

Array fields match element by element. Try tags:payment, -tags:checkout, or tags:*.

2 of 4 events match

  • req-1042/checkout500apicheckout, payment420ms
  • req-1045/checkout404workercheckout, promotion271ms
Parsed query value
{
  "clauses": [
    {
      "type": "field",
      "field": "tags",
      "operator": "eq",
      "values": [
        "checkout"
      ],
      "negated": false
    },
    {
      "type": "field",
      "field": "status",
      "operator": "eq",
      "values": [
        "200"
      ],
      "negated": true
    }
  ]
}

Clauses as chips

Every clause is removable, and the text stays the source of truth: service:(api or worker) utm_source:* duration>250

  • service = api, worker
  • utm_source present
  • duration > 250

path:/a -health status>=500 utm_source:* path:*checkout*

QueryBar

PropTypeDefaultDescription
valueRequiredQuery—파싱된 쿼리
onChangeRequired(query: Query) => void—커밋 시 호출 (Enter·blur)
fieldsQueryField[]—자동완성할 필드와 알려진 값
showClausesbooleanfalse절을 제거 가능한 칩으로 표시
livebooleanfalse키 입력마다 커밋
View test results

테스트 커버리지

2026년 7월 9일

생성된 테스트 결과를 찾지 못했습니다.

QueryBar 항목이 문서 메타에 연결되어 있지만 현재 생성 파일에는 없습니다.

테스트를 추가한 뒤 `bun run generate:test-results`를 실행하거나 `testDescribe` 매핑을 다시 확인하세요.

Related components

opt-ui

FaqAccordion

Shells

Organize FAQ questions and answers with Composite and Disclosure components.

opt-ui

PageAside

Shells

Add a sticky, fixed-width page aside with header, body, and footer slots.

opt-ui

EnvPanel

Shells

Browse environment variables with collapsible environment groups and Composite navigation.

opt-ui

BranchSelect

Shells

Choose a Git branch with a wrapper around the Select primitive.

opt-ui

DesignGuidePanel

Shells

Consult six design-system reference sections covering primitives, keyboard patterns, Tailwind selectors, and accessibility attributes.

opt-ui

QuickActions

Shells

Present frequent actions in a grid or list with keyboard shortcut labels.

PreviousLogTableNextFieldSidebar