Filter Bar
Betav1.0.0저장된 뷰 · 조회 · 필터 편집을 갖춘 필터 바.
Loading…
Installation
pnpm dlx @groudit/cli@latest add filter-barComposition
FilterBar
├── Variant header (chevron + Edit Filters)
├── FilterBarItem (가로 wrap)
│ ├── Label (위)
│ └── Control (Input / Select / …)
└── Active count Badge + Go Button (우측)Dependencies
설치 시 자동으로 함께 들어오는 의존성. 모든 버전은 정확히 고정되어 자동 업데이트를 방지합니다.
npm packages
| Package | Version |
|---|---|
| clsx | 2.1.1 |
| tailwind-merge | 3.6.0 |
Accessibility
이 컴포넌트는 WAI-ARIA search 패턴을 따릅니다.
Keyboard interactions
| Key | Description |
|---|---|
Tab | 필터 항목 → Go 버튼 → 필터 편집 순. |
Enter | Go 실행 또는 chevron 토글. |
Esc | 필터 편집 다이얼로그 닫기. |
Notes
- •각 FilterBarItem 은 Label + 컨트롤 자동 연결.
- •chevron 버튼 aria-expanded 자동 부여.
- •필터 편집 다이얼로그는 Dialog 의 focus trap 그대로 사용.
- •required 항목은 필터 편집에서 disabled — 사용자가 끌 수 없음.