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).
- ChipSlotProps for the underlying chip slot.
- UserMenuProps where role badges are displayed.
Properties
Section titled “Properties”colors?
Section titled “colors?”
optionalcolors: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.