diff --git a/components/doc/tabview/scrollabledoc.js b/components/doc/tabview/scrollabledoc.js index 29c499575c..450f4e5499 100644 --- a/components/doc/tabview/scrollabledoc.js +++ b/components/doc/tabview/scrollabledoc.js @@ -3,11 +3,11 @@ import { DocSectionText } from '@/components/doc/common/docsectiontext'; import { TabPanel, TabView } from '@/components/lib/tabview/TabView'; export function ScrollableDoc(props) { - const tabs = Array.from({ length: 50 }, (_, i) => ({ title: `Tab ${i + 1}`, content: `Tab ${i + 1} Content` })); + const scrollableTabs = Array.from({ length: 50 }, (_, i) => ({ title: `Tab ${i + 1}`, content: `Tab ${i + 1} Content` })); const code = { basic: ` - {tabs.map((tab) => { + {scrollableTabs.map((tab) => { return (

{tab.content}

@@ -26,7 +26,7 @@ export default function ScrollableDemo() { return (
- {tabs.map((tab) => { + {scrollableTabs.map((tab) => { return (

{tab.content}

@@ -44,11 +44,11 @@ import { TabView, TabPanel } from 'primereact/tabview'; export default function ScrollableDemo() { const scrollableTabs = Array.from({ length: 50 }, (_, i) => ({ title: \`Tab \${i + 1}\`, content: \`Tab \${i + 1} Content\` })) - + return (
- {tabs.map((tab) => { + {scrollableTabs.map((tab) => { return (

{tab.content}

@@ -71,7 +71,7 @@ export default function ScrollableDemo() {
- {tabs.map((tab) => { + {scrollableTabs.map((tab) => { return (

{tab.content}