Injected Props
When a disclosable is opened, it receives injected props that allow it to communicate with the disclosable system.
Provided Props
isDisclosableOpen
A boolean indicating whether the disclosable is currently open. Use this to control your dialog component's visibility.
closeDisclosable
A function to close the disclosable. This is the primary way to communicate back to the caller.
Parameters
Usage Examples
Basic close:
With close reason:
With animation delay:
disclosableIndex
A unique index for this disclosable instance. Useful for:
- Z-index management - Higher index = higher z-index for stacked dialogs
- Tracking dialog order - Know which dialog was opened first/last
