Utility primitive that hides content visually while preserving it for assistive technology.
Install @wyrd-company/react or the Flutter package and use it directly —
your DESIGN.md does the styling.
catalog/contracts/visually-hidden.ymlsource of truth · verbatim
$schema: https://thewyrdingway.dev/schemas/component-contract.schema.ymlcontractVersion: 0.1.0identity:name: VisuallyHiddentag: wyrd-visually-hiddenpackage: wyrd.component.visually-hiddentitle: Visually Hiddensummary: Utility primitive that hides content visually while preserving it for assistive technology.relationships:related-to: - quality-parity-and-gatesclassification:category: structurecomposition: single-slotinteractive: falsetarget-strategy:react: requiredflutter: requiredsurface:properties: []slots: - name: contentcontent: truerequired: truecardinality: one-or-manyaccepts: - content - componentsummary: Content hidden visually but preserved in the accessibility tree.events: []states: - name: defaultsource: platformsummary: Content is visually hidden and remains available to assistive technology.parts: - name: rootsummary: Visually hidden content wrapper.slots: - contentmessages: []obligations:accessibility:role: nonekeyboard: []semantics: - Content is hidden visually but fully exposed to assistive technology. - Does not use display none or visibility hidden.behavior:model: statelessinteractions: []hostEffects: []conditions: - rtl - density-compact - text-expansionsdui:status: serializableserializableProperties: []serializableSlots: - contenteventBindings: []notes: Visually Hidden serializes its content slot and no properties.examples: - name: defaultstate: defaultproperties: {}slots:content: Additional context for assistive technology.overrides:react:slots:content: childrenflutter:slots:content: child
01
Examples
Generated from the contract's examples block.
Previews are the published @wyrd-company/react component, themed by the
brand's role tokens — flip the site's light/dark toggle and they follow.