# Gooey Chip Filter — Skecher UI

Multi-select filter chips that fuse into one liquid blob when selected and pinch apart when deselected.

## Install

```bash
bunx --bun shadcn@latest add CoDesign-Spa27/skecher-ui/gooey-chip-filter
```

## Dependencies

- motion

## Implementation guidance

- Two-layer goo: Blobs and bridges render in a layer behind an SVG goo filter, while labels sit in a crisp layer on top, so text never blurs.
- Merges in place: Chips stay where they are. Selected neighbours fuse side by side, and across wrapped rows when they sit above one another.
- Accessible toggles: Each chip is a native button with aria-pressed inside a labelled group. Motion is removed when reduced motion is preferred.

## Usage

```tsx
"use client";

import { useState } from "react";

import { GooeyChipFilter } from "@/components/ui/gooey-chip-filter";

const items = [
  { id: "design", label: "Design", count: 24 },
  { id: "engineering", label: "Engineering", count: 41 },
  { id: "remote", label: "Remote", count: 33 },
  { id: "contract", label: "Contract", count: 7 },
];

export default function RoleFilters() {
  const [filters, setFilters] = useState<string[]>(["engineering"]);

  return (
    <GooeyChipFilter
      items={items}
      value={filters}
      onValueChange={setFilters}
      label="Filter open roles"
    />
  );
}
```

## Source files

- components/ui-components/gooey-chip-filter.tsx — Gooey multi-select filter chips

## Canonical resources

- Documentation: https://skecher-ui.com/docs/gooey-chip-filter
- Registry item with complete source: https://skecher-ui.com/r/gooey-chip-filter.json
- Component AI context: https://skecher-ui.com/llms/gooey-chip-filter
