Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 6e0897d

Browse files
docs(use-disclosure): add JSDoc
1 parent 3820e40 commit 6e0897d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/vue-composables/src/use-disclosure.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ export interface UseDisclosureProps {
99
id?: string
1010
}
1111

12+
/**
13+
* Handles common open, close, or toggle scenarios.
14+
* It can be used to control feedback components such as `Modal`, `AlertDialog`, `Drawer`, etc.
15+
*/
1216
export function useDisclosure(props: UseDisclosureProps = {}) {
1317
const {
1418
isOpen: isOpenProp,

0 commit comments

Comments
 (0)