Filter Bar
개수를 함께 보여 주는 알약 필터 바입니다.
@horon-ai/react
내비게이션
Preview
Usage
import { FilterBar } from "@horon-ai/react";
const items = [
{ value: "all", label: "All", count: 4 },
{ value: "running", label: "Running", count: 1 },
{ value: "review", label: "Needs review", count: 1 },
{ value: "failed", label: "Failed", count: 1 },
{ value: "done", label: "Done", count: 1 },
];
export default function FilterBarDemo() {
return (
<div className="flex w-full flex-col items-center gap-4 rounded-2xl bg-bg-surface p-4 sm:p-8">
<div className="max-w-full overflow-x-auto rounded-full">
<FilterBar items={items} defaultValue="all" />
</div>
<div className="max-w-full overflow-x-auto rounded-full">
<FilterBar items={items} defaultValue="review" />
</div>
</div>
);
}