import type { Meta, StoryObj } from '@storybook/web-components-vite'; import { html } from 'lit'; import './usa-base-template.js'; const meta: Meta = { title: 'Templates/Base', component: 'usa-base-template', tags: ['autodocs'], parameters: { layout: 'fullscreen', docs: { description: { component: ` The base template provides the foundation structure for all USWDS pages. It includes skip navigation, government banner, header/footer slots, and identifier. ## Features - Skip navigation link - Government banner (optional) - Header slot - Main content area - Footer slot - Identifier (optional) ## USWDS Reference https://designsystem.digital.gov/templates/ `, }, }, }, argTypes: { lang: { control: 'select', options: ['en', 'es'], description: 'Page language', }, showBanner: { control: 'boolean', description: 'Show government banner', }, showIdentifier: { control: 'boolean', description: 'Show identifier at bottom', }, skipText: { control: 'text', description: 'Skip link text', }, skipHref: { control: 'text', description: 'Skip link target', }, }, }; export default meta; type Story = StoryObj; export const Default: Story = { args: { showBanner: true, showIdentifier: true, skipText: 'Skip to main content', skipHref: '#main-content', }, render: (args) => html`

Welcome to Our Agency

This is the main content area of the page. You can add any content here using the main slot.

The base template provides the foundational structure for all government websites, including skip navigation, government banner, and identifier.

`, }; export const WithoutBanner: Story = { args: { showBanner: false, showIdentifier: true, }, render: (args) => html`

Page Without Banner

This page does not show the government banner.

`, }; export const MinimalTemplate: Story = { args: { showBanner: false, showIdentifier: false, }, render: (args) => html`

Minimal Template

This template shows only the main content without banner or identifier.

`, }; export const SpanishLanguage: Story = { args: { lang: 'es', showBanner: true, showIdentifier: true, skipText: 'Saltar al contenido principal', }, render: (args) => html`

Bienvenido

Esta página está en español.

`, };