kuratlielia

Chip Group

Component 26

About

A row of selectable filter chips for narrowing a list by facets like topics, statuses, or tags, with an animated check and a "+N more" overflow for long sets.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Chip Group to your project and fits it to your theme.

Code

How Chip Group is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import ChipGroup from "@/components/ui/chip-group";
import { useState } from "react";

const options = [
  { value: "design", label: "Design" },
  { value: "engineering", label: "Engineering" },
  { value: "product", label: "Product" },
  { value: "marketing", label: "Marketing" },
  { value: "sales", label: "Sales" },
  { value: "support", label: "Support" },
];

export default function ChipGroupDemo() {
  const [value, setValue] = useState<string[]>(["design"]);

  return (
    <div className="flex w-full max-w-md items-center justify-center p-8">
      <ChipGroup
        label="Topics"
        options={options}
        value={value}
        onValueChange={setValue}
        maxVisible={4}
      />
    </div>
  );
}

Dependencies

More by kuratlielia

View all
  • Activity Heatmap

    Activity Heatmap

    511
  • Image Compare

    Image Compare

    182
  • Stats Band

    Stats Band

    128
  • User Menu

    User Menu

    112
  • Date Range Picker

    Date Range Picker

    91
  • Usage Meter

    Usage Meter

    72
  • Ridgeline Chart

    Ridgeline Chart

    55
  • Timeline

    Timeline

    55