import React from "react"; import type { Meta, StoryObj } from "@storybook/react"; import { VisuallyHidden } from "./VisuallyHidden"; import { Text } from "@sproutsocial/seeds-react-text"; const meta: Meta = { title: "Components/Visually Hidden", component: VisuallyHidden, }; export default meta; type Story = StoryObj; export const Default: Story = { render: (args) => ( // @ts-ignore The VisuallyHidden component is used to hide text visually but still make it accessible to screen readers. This is often used for screen reader only text, such as labels for icons or interactive elements that require a textual description to make sense for non-sighted users. See code for example. This text is hidden visually but accessible by screen readers. ), }; export const TailwindUtilityOverride: Story = { render: () => ( This text is visible because consumer utilities override the layered component styles. ), };