Skip to content

RoleBadgeProps

RoleBadgeProps = object

Defined in: packages/ui/src/types.ts:1329

Props for the RoleBadge component.

Displays a colored chip badge for a user’s role from @cfast/permissions. Colors are configurable per role name; defaults provide sensible mappings (e.g., “admin” -> danger, “editor” -> primary, “reader” -> neutral).

optional colors: Record<string, string>

Defined in: packages/ui/src/types.ts:1333

Custom color map from role name to chip color.


role: string

Defined in: packages/ui/src/types.ts:1331

Role name to display.