Rendyn

Component library

189 components

Product blocks

Pill

Pill composes small informational and actionable subcomponents.

Interactive exampleReact Tailwind CSS

Practical React example

Show a compact record label with an optional avatar, status or removal action.

Before you copy and paste

Use the composed primitives together under their required provider, where one is present. Copy components/kibo-ui/pill/index.tsx and its returned support files from the Code tab; preserve the project-relative paths. Install the listed primitives: pnpm dlx shadcn@latest add avatar badge button.

Listed package dependencies: lucide-react.

Use the Code tab for the component files and installation instructions, then adapt the imports in this example to your project.

Show a compact record label with an optional avatar, status or removal action

// Usage adapted from Kibo UI's pinned MIT source.
// Copyright (c) 2023 — Present shadcnblocks. See ./LICENSES.md.
"use client";

import {
  Pill,
  PillAvatar,
  PillAvatarGroup,
  PillButton,
  PillDelta,
  PillIcon,
  PillIndicator,
  PillStatus,
} from "@/components/kibo-ui/pill";
import { CheckCircleIcon, UsersIcon, XIcon } from "lucide-react";

const Example = () => (
  <div className="flex flex-wrap items-center justify-center gap-2">
    <Pill>
      <PillAvatar
        fallback="HB"
        src="https://pbs.twimg.com/profile_images/1748718473595789312/PbqJh9hk_400x400.jpg"
      />
      @haydenbleasel
    </Pill>
    <Pill>
      <PillStatus>
        <CheckCircleIcon className="text-emerald-500" size={12} />
        Passed
      </PillStatus>
      Approval Status
    </Pill>
    <Pill>
      #kibo-ui
      <PillButton size="icon" variant="ghost">
        <XIcon size={12} />
      </PillButton>
    </Pill>
    <Pill>
      <PillIndicator pulse variant="success" />
      Active
    </Pill>
    <Pill>
      <PillIndicator variant="error" />
      Error
    </Pill>
    <Pill>
      <PillDelta delta={10} />
      Up 10%
    </Pill>
    <Pill>
      <PillDelta delta={-5} />
      Down 5%
    </Pill>
    <Pill>
      <PillDelta delta={0} />
      No change
    </Pill>
    <Pill>
      <PillIcon icon={UsersIcon} />
      17 users
    </Pill>
    <Pill>
      <PillAvatarGroup>
        <PillAvatar
          fallback="HB"
          src="https://pbs.twimg.com/profile_images/1748718473595789312/PbqJh9hk_400x400.jpg"
        />
        <PillAvatar
          fallback="SC"
          src="https://pbs.twimg.com/profile_images/1593304942210478080/TUYae5z7_400x400.jpg"
        />
        <PillAvatar
          fallback="LR"
          src="https://pbs.twimg.com/profile_images/1862717563311968256/xfgt1L9l_400x400.jpg"
        />
      </PillAvatarGroup>
      Loved by millions
    </Pill>
  </div>
);

export default Example;

Usage example adapted from Kibo UI's pinned MIT source. Retain the source licence notices when copying.

Keep the pill text meaningful on its own and give a removal button an accessible name tied to the item. Use actual record status rather than decorative color.

Customization

PillProps.themed
Optional; boolean.
PillAvatarProps.fallback
Optional; string.
PillStatusProps.children
Required; ReactNode.
PillStatusProps.className
Optional; string.
PillIndicatorProps.variant
Optional; "success" | "error" | "warning" | "info".
PillIndicatorProps.pulse
Optional; boolean.
PillDeltaProps.className
Optional; string.
PillDeltaProps.delta
Required; number.
PillIconProps.icon
Required; typeof ChevronUpIcon.
PillIconProps.className
Optional; string.
PillAvatarGroupProps.children
Required; ReactNode.
PillAvatarGroupProps.className
Optional; string.

Integration notes

  • Do not nest a button inside a link-like pill wrapper.
  • A compact label should not hide the only explanation of an error or restriction.

Component source: Kibo UI documentation . These examples describe the version imported into Rendyn. Upstream APIs may have changed; retain the source licence notices when adapting the code.

Better with your agent

Give your agent taste.

The best way to use Rendyn is through MCP. Let your agent find the right component, compare previews and bring the source into your project.

All components are free. Sign up only to connect MCP.

Connect to MCP