Component packs › Insignia › Role Chip

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.

Role Chip props

PropTypeDefaultDescription
membersRoleChipMember[]
rolesRoleChipRole[]Roles a chip can step through.
onChange(email: string, role: RoleChipRole) => void
theme"light" | "dark"
autoplaynumber | falseShowcase mode: changes someone's role every N ms while visible.

Methods on the ref

Use it in React

import RoleChip from './RoleChip';

<RoleChip />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Insignia

Good for: Badges.