amankaushik481

Permission Chip

Component

About

A small uppercase chip that shows a user's or token's access level (admin, write or read), used in member lists, API key tables and sharing dialogs.

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

Code

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

Usage.tsx

import { PermissionChip } from "@/components/ui/permission-chip";

export default function PermissionChipDemo() {
  return (
    <div className="flex gap-2">
      <PermissionChip level="admin" />
      <PermissionChip level="write" />
      <PermissionChip level="read" />
    </div>
  );
}

More by amankaushik481

View all
  • Icon Button

    Icon Button

    14
  • Background Boxes

    Background Boxes

    12
  • Chip Filter

    Chip Filter

    8
  • Typing Text

    Typing Text

    7
  • Treemap Chart

    Treemap Chart

    6
  • File Dropzone

    File Dropzone

    5
  • Emoji Picker

    Emoji Picker

    4
  • Morphing Text

    Morphing Text

    2