import type {Meta, StoryObj} from "@storybook/react"; import React from "react"; import {Typography} from "../../.."; const meta: Meta = { title: "Typography", component: Typography, }; export default meta; type ContainerStory = StoryObj; const headings: ContainerStory = { name: "headings", render: (_args) => ( <> govuk-heading-l govuk-heading-m govuk-heading-s ), }; const headingsLongFormContent: ContainerStory = { name: "headings long form content", render: (_args) => ( <> govuk-heading-xl govuk-heading-l govuk-heading-m govuk-heading-s ), }; const headingsWithCaptions: ContainerStory = { name: "headings with captions", render: (_args) => ( <> govuk-caption-xl govuk-heading-xl govuk-caption-l govuk-heading-l govuk-caption-m govuk-heading-m ), }; const nestedCaptions: ContainerStory = { name: "nested captions", render: (_args) => ( govuk-caption-l govuk-heading-l ), }; const body: ContainerStory = { name: "body", render: (_args) => ( govuk-body ), }; const lead: ContainerStory = { name: "lead", render: (_args) => ( govuk-body-l ), }; const bodySmall: ContainerStory = { name: "body", render: (_args) => ( govuk-body-s ), }; const fontSize: ContainerStory = { name: "font size", render: (_args) => ( <> govuk-!-font-size-80 govuk-!-font-size-48 govuk-!-font-size-36 govuk-!-font-size-27 govuk-!-font-size-24 govuk-!-font-size-19 govuk-!-font-size-16 govuk-!-font-size-14 ), }; const fontWeight: ContainerStory = { name: "font weight", render: (_args) => ( <> govuk-!-font-weight-regular govuk-!-font-weight-bold ), }; const links: ContainerStory = { name: "font weight", render: (_args) => ( Jump to HTML example. ), }; const linkNoVisitedState: ContainerStory = { name: "font weight", render: (_args) => ( link text (with no visited state) ), }; const linkNewTab: ContainerStory = { name: "font weight", render: (_args) => ( link text (opens in new tab) ), }; const linksOnDarkBackgrounds: ContainerStory = { name: "font weight", render: (_args) => ( link text (on dark background) ), }; const linkNoUnderline: ContainerStory = { name: "font weight", render: (_args) => ( link text (with no underline) ), }; const lists: ContainerStory = { name: "font weight", render: (_args) => ( ), }; const bulletedLists: ContainerStory = { name: "font weight", render: (_args) => ( <>

You can buy:

), }; const numberedLists: ContainerStory = { name: "font weight", render: (_args) => (
  1. Delivery address.
  2. Payment.
  3. Confirmation.
), }; const listExtraSpacing: ContainerStory = { name: "font weight", render: (_args) => ( <>

You will have to apply the reverse charge if you supply any of these services:

), }; const sectionBreak: ContainerStory = { name: "font weight", render: (_args) => ( <>



), }; export { headings, headingsLongFormContent, headingsWithCaptions, nestedCaptions, body, lead, bodySmall, fontSize, fontWeight, links, linkNoVisitedState, linkNewTab, linksOnDarkBackgrounds, linkNoUnderline, lists, bulletedLists, numberedLists, listExtraSpacing, sectionBreak, };