Description

Function which returns a componentId which can be used to identify a component instance by affecting it to its Root sub-component componentId prop. It can then be passed to the forComponent prop of other sub-components to associates them to the same component instance.

Notes

Usage

Example

const loginSheetId = createComponentId();
<Sheet.Root componentId={loginSheetId}>
	...
	<Sheet.Trigger forComponent={loginSheetId} />
	...
</Sheet.Root>