@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 • 342 B
JavaScript
export function createTouches(touches) {
return {
changedTouches: touches.map(touch =>
// eslint-disable-next-line compat/compat -- used in test environment only
new Touch({
target: document.body,
...touch
}))
};
}
export function getHorizontalSliderRect(width = 100) {
return new DOMRect(0, 0, width, 10);
}