import type { Meta, StoryObj } from '@storybook/web-components-vite'; import { html } from 'lit'; import './index.ts'; import type { USAInPageNavigation } from './usa-in-page-navigation.js'; // Component now uses USWDS auto-generation - no manual items needed! const meta: Meta = { title: 'Navigation/In-Page Navigation', component: 'usa-in-page-navigation', parameters: { layout: 'fullscreen', // Changed from 'padded' to enable sticky positioning in scroll container viewport: { defaultViewport: 'responsive', // Ensures viewport is wide enough for tablet+ breakpoint }, chromatic: { viewports: [1200], // Force wide viewport for visual regression testing }, docs: { description: { component: ` The USA In-Page Navigation component provides a table of contents style navigation for long pages with automatic scroll tracking and smooth scrolling to sections. It improves user experience on lengthy documents and comprehensive guides by allowing quick navigation between sections. **True USWDS Implementation**: This component uses the authentic USWDS approach where an empty \`