useSharedSafeId

See source code

React's useId hook returns a unique id for the component. However, it uses a colon in the id, which is not valid for CSS selectors. This hook replaces the colon with an underscore.

function useSharedSafeId(id: string): SafeId

Parameters

NameDescription

id

string

Returns

Prev
useSelectionEvents
Next
useSvgExportContext