@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.
23 lines • 441 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 {
width,
height: 10,
bottom: 10,
left: 0,
x: 0,
y: 0,
top: 0,
right: width,
toJSON() {}
};
}