MultipleDisclosure
MultipleDisclosure<T>: { isOpen: (id: T | string) => boolean; onClose: (id: T | string) => () => void; onOpen: (id: T | string) => () => void; onToggle: (id: T | string) => () => void }
Type parameters
Type declaration
-
isOpen: (id: T | string) => boolean
-
- (id: T | string): boolean
-
Parameters
Returns boolean
-
onClose: (id: T | string) => () => void
-
- (id: T | string): () => void
-
Parameters
Returns () => void
-
onOpen: (id: T | string) => () => void
-
- (id: T | string): () => void
-
Parameters
Returns () => void
-
onToggle: (id: T | string) => () => void
-
- (id: T | string): () => void
-
Parameters
Returns () => void