UNPKG

@base-ui/react

Version:

Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.

19 lines (18 loc) 672 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.scrollAreaStateAttributesMapping = void 0; // Data-attribute strings inlined so `ScrollAreaRootDataAttributes` tree-shakes out. const attr = name => value => value ? { [name]: '' } : null; const scrollAreaStateAttributesMapping = exports.scrollAreaStateAttributesMapping = { hasOverflowX: attr('data-has-overflow-x'), hasOverflowY: attr('data-has-overflow-y'), overflowXStart: attr('data-overflow-x-start'), overflowXEnd: attr('data-overflow-x-end'), overflowYStart: attr('data-overflow-y-start'), overflowYEnd: attr('data-overflow-y-end'), cornerHidden: () => null };