Component packs › Insignia › Role Chip
A new enamel pin with an engraved key, shield, nib or eye is struck in place when someone's role changes.
Role Chip is a chip from Insignia, a component pack with 6 badges: Badges struck like coins: they press in, emboss and catch the light once. Price: $2 for the whole pack.
Built with: engraved role symbols, click to change, arrow keys between members.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
members | RoleChipMember[] | ||
roles | RoleChipRole[] | Roles a chip can step through. | |
onChange | (email: string, role: RoleChipRole) => void | ||
theme | "light" | "dark" | ||
autoplay | number | false | Showcase mode: changes someone's role every N ms while visible. |
setRole(email: string, role: RoleChipRole): voiddestroy(): voidimport RoleChip from './RoleChip';
<RoleChip />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Badges.