@base-ui-components/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.
28 lines (27 loc) • 1.11 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.scrollAreaStateAttributesMapping = void 0;
var _ScrollAreaRootDataAttributes = require("./ScrollAreaRootDataAttributes");
const scrollAreaStateAttributesMapping = exports.scrollAreaStateAttributesMapping = {
hasOverflowX: value => value ? {
[_ScrollAreaRootDataAttributes.ScrollAreaRootDataAttributes.hasOverflowX]: ''
} : null,
hasOverflowY: value => value ? {
[_ScrollAreaRootDataAttributes.ScrollAreaRootDataAttributes.hasOverflowY]: ''
} : null,
overflowXStart: value => value ? {
[_ScrollAreaRootDataAttributes.ScrollAreaRootDataAttributes.overflowXStart]: ''
} : null,
overflowXEnd: value => value ? {
[_ScrollAreaRootDataAttributes.ScrollAreaRootDataAttributes.overflowXEnd]: ''
} : null,
overflowYStart: value => value ? {
[_ScrollAreaRootDataAttributes.ScrollAreaRootDataAttributes.overflowYStart]: ''
} : null,
overflowYEnd: value => value ? {
[_ScrollAreaRootDataAttributes.ScrollAreaRootDataAttributes.overflowYEnd]: ''
} : null,
cornerHidden: () => null
};