diff --git a/pages/app-layout/navigation-with-scrollbar.page.tsx b/pages/app-layout/navigation-with-scrollbar.page.tsx new file mode 100644 index 0000000000..19d74ee74f --- /dev/null +++ b/pages/app-layout/navigation-with-scrollbar.page.tsx @@ -0,0 +1,55 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 +import React from 'react'; + +import AppLayout from '~components/app-layout'; +import Select from '~components/select'; +import SideNavigation, { SideNavigationProps } from '~components/side-navigation'; + +import labels from './utils/labels'; + +const items: SideNavigationProps.Item[] = new Array(50).fill(null).map((_, index) => ({ + type: 'link', + text: `Link to page ${index + 1} with long enough text to wrap`, + href: '#', +})); + +const itemsControl = ( +