diff --git a/packages/components/dropdown/stories/dropdown.stories.tsx b/packages/components/dropdown/stories/dropdown.stories.tsx
index 21e280b4a3..d2364b0b84 100644
--- a/packages/components/dropdown/stories/dropdown.stories.tsx
+++ b/packages/components/dropdown/stories/dropdown.stories.tsx
@@ -99,6 +99,11 @@ export default {
disable: true,
},
},
+ shouldBlockScroll: {
+ control: {
+ type: "boolean",
+ },
+ },
},
decorators: [
(Story) => (
@@ -815,3 +820,18 @@ export const WithFallbackPlacements = {
),
};
+
+export const WithShouldBlockScroll = {
+ render: (args) => {
+ return (
+
+
+
+
+ );
+ },
+
+ args: {
+ ...defaultProps,
+ },
+};
diff --git a/packages/components/modal/stories/modal.stories.tsx b/packages/components/modal/stories/modal.stories.tsx
index 5d6424d61e..a1d0227ab3 100644
--- a/packages/components/modal/stories/modal.stories.tsx
+++ b/packages/components/modal/stories/modal.stories.tsx
@@ -1,5 +1,6 @@
/* eslint-disable jsx-a11y/anchor-is-valid */
/* eslint-disable jsx-a11y/no-autofocus */
+import React from "react";
import {Meta} from "@storybook/react";
import {modal} from "@nextui-org/theme";
import {Button} from "@nextui-org/button";
@@ -63,6 +64,11 @@ export default {
disable: true,
},
},
+ shouldBlockScroll: {
+ control: {
+ type: "boolean",
+ },
+ },
},
decorators: [
(Story) => (
@@ -348,3 +354,18 @@ export const DraggableOverflow = {
...defaultProps,
},
};
+
+export const WithShouldBlockScroll = {
+ render: (args) => {
+ return (
+
+
+
+
+ );
+ },
+
+ args: {
+ ...defaultProps,
+ },
+};
diff --git a/packages/components/navbar/stories/navbar.stories.tsx b/packages/components/navbar/stories/navbar.stories.tsx
index c2c90ef08d..03b7e9c421 100644
--- a/packages/components/navbar/stories/navbar.stories.tsx
+++ b/packages/components/navbar/stories/navbar.stories.tsx
@@ -50,6 +50,11 @@ export default {
type: "boolean",
},
},
+ shouldBlockScroll: {
+ control: {
+ type: "boolean",
+ },
+ },
},
decorators: [
(Story) => (
@@ -615,3 +620,18 @@ export const WithSearchInput = {
...defaultProps,
},
};
+
+export const WithShouldBlockScroll = {
+ render: (args) => {
+ return (
+
+
+
+
+ );
+ },
+
+ args: {
+ ...defaultProps,
+ },
+};
diff --git a/packages/components/popover/stories/popover.stories.tsx b/packages/components/popover/stories/popover.stories.tsx
index 72f7efdf04..3df9aae279 100644
--- a/packages/components/popover/stories/popover.stories.tsx
+++ b/packages/components/popover/stories/popover.stories.tsx
@@ -96,6 +96,11 @@ export default {
disable: true,
},
},
+ shouldBlockScroll: {
+ control: {
+ type: "boolean",
+ },
+ },
},
decorators: [
(Story) => (
@@ -575,3 +580,18 @@ export const CustomMotion = {
},
},
};
+
+export const WithShouldBlockScroll = {
+ render: (args) => {
+ return (
+
+
+
+
+ );
+ },
+
+ args: {
+ ...defaultProps,
+ },
+};