darshan-rajadhyaksha

Chip

Component

About

A compact labeled chip for showing a value, category, status, or interactive tag, with optional avatar/icon, a delete action, semantic color variants, and small/medium/large sizes. React port of the Chip component from Darshan Rajadhyaksha's SolidJS RockSolid component library.

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

Code

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

Usage.tsx

import Chip from "@/components/ui/chip";

export default function Example() {
  return (
    <div className="flex gap-4 flex-wrap justify-center">
      <Chip label="Disabled" disabled />
      <Chip label="Clickable Disabled" disabled onClick={() => {}} />
      <Chip label="Disabled" variant="outlined" disabled />
      <Chip label="Disabled with delete" disabled onDelete={() => {}} />
    </div>
  );
}

Dependencies

More by darshan-rajadhyaksha

View all
  • Switch

    Switch

    2
  • Backdrop

    Backdrop

    1
  • Avatar

    Avatar

  • Progress Bar

    Progress Bar

  • Accessible Dialog

    Accessible Dialog

  • Input

    Input

  • Card Content

    Card Content

  • Breadcrumbs

    Breadcrumbs