darshan-rajadhyaksha

Chip

Buttons

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 type { MouseEvent } from "react";
import Chip from "@/components/ui/chip";

export default function Example() {
  const handleClick = (event: MouseEvent) => {
    console.log("Chip clicked", event);
  };
  return <Chip label="Click me" onClick={handleClick} />;
}

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

More in Buttons

View all
  • Button

    Button

    1
  • Texture Button

    Texture Button

    97
  • Eclipse Button

    Eclipse Button

    39
  • App Store Button

    App Store Button

    458
  • HeroUI Button Group

    HeroUI Button Group

    2
  • Button

    Button

    4
  • Button

    Button

    65
  • Button

    Button

    68