useTldrawUser

See source code
function useTldrawUser(opts: {
  setUserPreferences?: (userPreferences: TLUserPreferences) => void
  userPreferences?: Signal<TLUserPreferences> | TLUserPreferences
}): TLUser

Parameters

NameDescription

opts

{
  setUserPreferences?: (
    userPreferences: TLUserPreferences
  ) => void
  userPreferences?:
    | Signal<TLUserPreferences>
    | TLUserPreferences
}

Returns

Prev
useSvgExportContext
Next
useTLSchemaFromUtils