Skip to content

getUserColor

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/apps/web/src/lib/user-colors.ts

Get a consistent color for a user with memoization This is more efficient when the same userId is requested multiple times

Signature

ts
function getUserColor(userId: string): string

Parameters

NameType
userIdstring

Returns: string

Was this page helpful?

Download as PDF