GodUIGodUI
109Follow on X
Issues2 of 6
  • ENG-241Token refresh races on slow networks
  • ENG-225Mega menu panel height jump

Filter Bar

tsx
"use client";import { FilterBar } from "@/components/godui/filter-bar";import { useState } from "react";const facets = [{  id: "status",  label: "Status",  options: [    { label: "Backlog", value: "backlog", count: 24 },    { label: "In progress", value: "progress", count: 8 },    { label: "Done", value: "done", count: 132 },  ],},{  id: "priority",  label: "Priority",  options: [    { label: "Urgent", value: "urgent", count: 3 },    { label: "High", value: "high", count: 12 },    { label: "Low", value: "low", count: 18 },  ],},];export function FilterBarDemo() {const [value, setValue] = useState({ status: ["progress"] });return <FilterBar facets={facets} value={value} onChange={setValue} />;}