import { playgroundParameters } from "@charcuterie/storybook-config/story-parameters" import type { Meta, StoryObj } from "@storybook/react" import { StoryCell, StoryGrid, } from "../board.storyHelpers.tsx" import { IconButton } from "../IconButton/IconButton.tsx" import { VisuallyHidden } from "./VisuallyHidden.tsx" /** * A Layer-0 primitive with a deliberately short story set: it has no * variants, no states, and no container-query behaviour — the whole * component is "in the accessibility tree, out of the layout". The * mandated five-story set would be four empty boards. * * It ships in M3 because `Spinner`, `ProgressBar`, and * `LiveStatusIndicator` all need it and the alternative is * `aria-label` everywhere, which cannot hold markup and silently * loses translation. */ const meta = { title: "Utilities/VisuallyHidden", component: VisuallyHidden, parameters: { layout: "padded" }, } satisfies Meta export default meta type Story = StoryObj export const Playground: Story = { parameters: playgroundParameters, args: { children: "Announced, never printed." }, render: (visuallyHiddenProps) => (

Ripping title 4

↶
), } /** * Present to a query, absent from the layout — the whole component. * There is nothing to see here on purpose; the assertions are in * `VisuallyHidden.test.tsx`. */ export const Interactive: Story = { args: { children: "Announced, never printed." }, }