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.

13 lines 505 B
// Data-attribute strings inlined so `ScrollAreaRootDataAttributes` tree-shakes out. const attr = name => value => value ? { [name]: '' } : null; export const 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 };