File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 11import * as React from "react" ;
22import { flushSync } from "react-dom" ;
3+ import { RoleOptions , useRole } from "ariakit" ;
34import { DisclosureState } from "ariakit/disclosure" ;
45import {
56 useEvent ,
@@ -12,7 +13,7 @@ import {
1213 createElement ,
1314 createHook ,
1415} from "ariakit-utils/system" ;
15- import { As , Options , Props } from "ariakit-utils/types" ;
16+ import { As , Props } from "ariakit-utils/types" ;
1617import raf from "raf" ;
1718
1819import {
@@ -198,6 +199,8 @@ export const useDisclosureCollapsibleContent =
198199 style,
199200 } ;
200201
202+ props = useRole ( props ) ;
203+
201204 return props ;
202205 } ,
203206 ) ;
@@ -210,7 +213,7 @@ export const DisclosureCollapsibleContent =
210213 } ) ;
211214
212215export type DisclosureCollapsibleContentOptions < T extends As = "div" > =
213- Options < T > & {
216+ RoleOptions < T > & {
214217 /**
215218 * Object returned by the `useDisclosureState` hook.
216219 */
You can’t perform that action at this time.
0 commit comments