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 { ComponentPropsWithoutRef } from "react";
import Chip from "@/components/ui/chip";
const SolidIcon = (props: ComponentPropsWithoutRef<"svg">) => (
<svg
{...props}
xmlns="http://www.w3.org/2000/svg"
width="1em"
height="1em"
viewBox="0 0 16 16"
>
<path d="M0 0h16v16H0z" fill="none" />
<path
fill="none"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
d="M1.5 11.575Q6.05 14.5 8 14.5c1.625 0 2.6-.975 2.6-2.275S9.625 9.95 8 9.95q-1.95 0-6.5 1.625"
/>
<path
fill="none"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
d="M3.45 8.975Q8 7.35 9.95 7.35c1.625 0 2.6.975 2.6 2.275c0 .48-.133.915-.382 1.274l-1.874 2.486m4.206-8.96C11.9 2.475 9.3 1.5 8 1.5c-1.326 0-1.702.301-2.222 1.004M1.5 11.575l1.95-2.6m11.05-4.55l-1.95 2.6m-6.772-4.52l-1.92 2.411"
/>
<path
fill="none"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
d="M5.02 8.43c-.981-.31-1.57-.961-1.57-2.055c0-1.625.975-2.275 2.6-2.275c1.097 0 3.307.694 5.329 2.083a75 75 0 0 1 1.171.842l-1.496.51"
/>
</svg>
);
export default function Example() {
return <Chip label="SolidJS" icon={<SolidIcon aria-hidden />} />;
}






