Use when an element needs to be available to assistive technology (for example, a screen reader) but otherwise hidden.
<script lang="ts" setup>
import { VisuallyHidden } from '@returnless/focus-ui';
</script>
<template>
<VisuallyHidden>
<p>This text is invisible</p>
</VisuallyHidden>
</template>Visually hidden should:
The visually hidden component styles text so that it’s not visible, but it is available to assistive technologies like screen readers and other text to speech programs.
The component shouldn’t be used to hide interactive content.