Supplementary Text
Gives a vague link the context sighted readers get from layout.
<a href="#" style={{ color: 'var(--fui-color-accent)' }}>
Read more
<VisuallyHidden> about our accessibility features</VisuallyHidden>
</a>Keeps text in the accessibility tree while taking it off the screen.
import { VisuallyHidden } from "@/fragments/ui";Source<button style={{
display: 'inline-flex',
alignItems: 'center',
justifyContent: 'center',
width: '40px',
height: '40px',npx @usefragments/cli add visuallyhiddenWrites src/fragments/ui/components/VisuallyHidden plus what it imports, the globals stylesheet, and .fragments/registry-lock.json, then prints the packages to add. No account, no key.
Your own registry: publish from Fragments Cloud and add --registry org/name. Connect a workspace.
Gives a vague link the context sighted readers get from layout.
<a href="#" style={{ color: 'var(--fui-color-accent)' }}>
Read more
<VisuallyHidden> about our accessibility features</VisuallyHidden>
</a>Hidden until focused, then it jumps keyboard users past the nav.
<div>
<VisuallyHidden as="div">
<a
href="#main-content"
style={{
position: 'absolute',Prop | Type | Default | Description |
|---|---|---|---|
childrenRequired | node | Not set | Content to hide visually |
as | enumspandiv | span | HTML element to render |