Buckets:
Quantumbraid/trainingdata / ui /node_modules /@headlessui /react /dist /hooks /use-inert-others.d.ts
| /** | |
| * Mark all elements on the page as inert, except for the ones that are allowed. | |
| * | |
| * We move up the tree from the allowed elements, and mark all their siblings as | |
| * inert. If any of the children happens to be a parent of one of the elements, | |
| * then that child will not be marked as inert. | |
| * | |
| * E.g.: | |
| * | |
| * ```html | |
| * <body> <!-- Stop at body --> | |
| * <header></header> <!-- Inert, sibling of parent --> | |
| * <main> <!-- Not inert, parent of allowed element --> | |
| * <div>Sidebar</div> <!-- Inert, sibling of parent --> | |
| * <div> <!-- Not inert, parent of allowed element --> | |
| * <listbox> <!-- Not inert, parent of allowed element --> | |
| * <button></button> <!-- Not inert, allowed element --> | |
| * <options></options> <!-- Not inert, allowed element --> | |
| * </listbox> | |
| * </div> | |
| * </main> | |
| * <footer></footer> <!-- Inert, sibling of parent --> | |
| * </body> | |
| * ``` | |
| */ | |
| export declare function useInertOthers(enabled: boolean, { allowed, disallowed, }?: { | |
| allowed?: () => (HTMLElement | null)[]; | |
| disallowed?: () => (HTMLElement | null)[]; | |
| }): void; | |
Xet Storage Details
- Size:
- 1.19 kB
- Xet hash:
- b7d9f9333e8d81f5be860e0bbdd8cc44e084bd0fe49bf8f3a00902854b700f6a
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.