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

Function getDataAttributes

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

Source from the content-addressed store, hash-verified

452});
453
454function getDataAttributes(values: SheetValues) {
455 return {
456 'data-position': values.position,
457 'data-swipe-direction': values.swipeDirection,
458 'data-expanded': values.isExpanded || undefined,
459 'data-stack-index': values.stackIndex,
460 'data-has-descendants': values.hasDescendants || undefined
461 };
462}
463
464// Merges the sheet-specific values into the render props, className, and style of a Modal or ModalOverlay.
465function useSheetRenderProps(

Callers 2

useSheetRenderPropsFunction · 0.85
Sheet.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected