/** * `data-*` attributes projected on ``. * * 1:1 port of Base UI React's `DrawerPopupDataAttributes` * (`packages/react/src/drawer/popup/DrawerPopupDataAttributes.ts`). */ export const DrawerPopupDataAttributes = { /** Present when the drawer is open. */ open: "data-open", /** Present when the drawer is closed. */ closed: "data-closed", /** Present when animating in. */ startingStyle: "data-starting-style", /** Present when animating out. */ endingStyle: "data-ending-style", /** Present when the drawer is at the expanded (full-height) snap point. */ expanded: "data-expanded", /** Present when a nested drawer is open. */ nestedDrawerOpen: "data-nested-drawer-open", /** Present when a nested drawer is being swiped. */ nestedDrawerSwiping: "data-nested-drawer-swiping", /** Present when the drawer is dismissed by swiping. */ swipeDismiss: "data-swipe-dismiss", /** `'up' | 'down' | 'left' | 'right'`. */ swipeDirection: "data-swipe-direction", /** Present when the drawer is being swiped. */ swiping: "data-swiping", } as const;