-
-
Notifications
You must be signed in to change notification settings - Fork 41
/
preview.jsx
35 lines (34 loc) · 821 Bytes
/
preview.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// for rtl testing
if (import.meta.env.STORYBOOK_RTL) {
document.documentElement.dir = "rtl";
}
// for e2e
if (import.meta.env.STORYBOOK_E2E) {
const style = document.createElement("style");
// elements with `pointer-events: none` can't be found by document.elementFromPoint()
style.appendChild(
document.createTextNode(
`* {
pointer-events: auto !important;
}`
)
);
document.head.appendChild(style);
}
/** @type { import('@storybook/react').Preview } */
export default {
parameters: {
actions: { argTypesRegex: "^on[A-Z].*" },
layout: "fullscreen",
options: {
storySort: {
order: [
"basics",
["VList", "Virtualizer", "WindowVirtualizer", "VGrid"],
"advanced",
"comparisons",
],
},
},
},
};