diff --git a/apps/docs/content/components/listbox/virtualization-ten-thousand.raw.jsx b/apps/docs/content/components/listbox/virtualization-ten-thousand.raw.jsx index f569bea6cc..51bc830984 100644 --- a/apps/docs/content/components/listbox/virtualization-ten-thousand.raw.jsx +++ b/apps/docs/content/components/listbox/virtualization-ten-thousand.raw.jsx @@ -32,26 +32,35 @@ const generateItems = (n) => { return dataset; }; +const ListboxWrapper = ({children}) => ( +
+ {children} +
+); + export default function App() { const items = generateItems(1000); return (
- - {items.map((item, index) => ( - - {item.label} - - ))} - + + + {items.map((item, index) => ( + + {item.label} + + ))} + +
); } diff --git a/apps/docs/content/components/listbox/virtualization.raw.jsx b/apps/docs/content/components/listbox/virtualization.raw.jsx index 96ec2011b8..34aa80ade1 100644 --- a/apps/docs/content/components/listbox/virtualization.raw.jsx +++ b/apps/docs/content/components/listbox/virtualization.raw.jsx @@ -31,26 +31,35 @@ const generateItems = (n) => { return dataset; }; +const ListboxWrapper = ({children}) => ( +
+ {children} +
+); + export default function App() { const items = generateItems(1000); return (
- - {items.map((item, index) => ( - - {item.label} - - ))} - + + + {items.map((item, index) => ( + + {item.label} + + ))} + +
); } diff --git a/apps/docs/content/components/select/virtualization-custom-item-height.raw.jsx b/apps/docs/content/components/select/virtualization-custom-item-height.raw.jsx index 35c578ffb1..efc2db30c2 100644 --- a/apps/docs/content/components/select/virtualization-custom-item-height.raw.jsx +++ b/apps/docs/content/components/select/virtualization-custom-item-height.raw.jsx @@ -39,6 +39,7 @@ export default function App() {
- {items.map((item, index) => ( {item.label} diff --git a/apps/docs/content/components/select/virtualization.raw.jsx b/apps/docs/content/components/select/virtualization.raw.jsx index 8434e57521..5701198948 100644 --- a/apps/docs/content/components/select/virtualization.raw.jsx +++ b/apps/docs/content/components/select/virtualization.raw.jsx @@ -37,7 +37,12 @@ export default function App() { return (
- {items.map((item, index) => ( {item.label}