Warning
This is an internal project, and is not intended for public use. No support or stability guarantees are provided.
A handle for controlling dialog visibility imperatively.
Use this class to programmatically open or close dialogs without using React state.
| Parameter | Type | Default | Description |
|---|---|---|---|
| initialOpen | | false | Whether the dialog starts open. |
| Property | Type | Modifiers | Description |
|---|---|---|---|
| id | | readonly | A unique identifier for this handle instance. |
| version | | static, readonly | The version of the Handle class. |
Opens the dialog.
booleanWhether the operation succeeded.
Closes the dialog.
booleanWhether the operation succeeded.
Toggles the dialog open/closed state.
voidimport { createTypes } from './createTypes';
import { Handle } from './Handle';
export const TypesHandle = createTypes(import.meta.url, Handle);