An open source design system that's fully customizable and agent ready
TypeScript
// Copyright (c) Meta Platforms, Inc. and affiliates.
'use client';
import {VisuallyHidden} from '@astryxdesign/core/VisuallyHidden';
import {Card} from '@astryxdesign/core/Card';
import {HStack, VStack} from '@astryxdesign/core/Layout';
import {Text} from '@astryxdesign/core/Text';
import {Badge} from '@astryxdesign/core/Badge';
const items = [
{name: 'astryx-core', status: 'Passing', variant: 'success'},
{name: 'astryx-charts', status: 'Failing', variant: 'error'},
{name: 'astryx-cli', status: 'Passing', variant: 'success'},
] as const;
export default function VisuallyHiddenStructuralHeading() {
return (
<VStack gap={3} hAlign="start">
<Text type="supporting" color="secondary">
The layout makes this group obvious to sighted users. A hidden heading
gives screen-reader users the same landmark to jump to.
</Text>
{/* No visible heading is needed here, but AT users navigate by heading. */}
<VisuallyHidden as="h2">Build status</VisuallyHidden>
<VStack gap={2}>
{items.map(({name, status, variant}) => (
<Card key={name} variant="muted" padding={3}>
<HStack gap={3} vAlign="center">
<Text type="body">{name}</Text>
<Badge label={status} variant={variant} />
</HStack>
</Card>
))}
</VStack>
</VStack>
);
}