MCPcopy Create free account
hub / github.com/adobe/react-spectrum / getDataAttributes

Function getDataAttributes

packages/react-aria-components/src/Sheet.tsx:476–484  ·  view source on GitHub ↗
(values: SheetValues)

Source from the content-addressed store, hash-verified

474});
475
476function getDataAttributes(values: SheetValues) {
477 return {
478 'data-position': values.position,
479 'data-swipe-direction': values.swipeDirection,
480 'data-expanded': values.isExpanded || undefined,
481 'data-stack-index': values.stackIndex,
482 'data-has-descendants': values.hasDescendants || undefined
483 };
484}
485
486// Merges the sheet-specific values into the render props, className, and style of a Modal or ModalOverlay.
487function useSheetRenderProps(

Callers 2

useSheetRenderPropsFunction · 0.85
Sheet.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected