- Dependencies:
- ∟Direct: 0
- ∟Peer: 2
- Source code ↗
- Check on NPM ↗
Overview
Section titled “Overview”Hides content visually, in an accessible way.
import { Button } from '@inpulse-ui/button';import { Gear } from '@inpulse-ui/icons';import { VisuallyHidden } from '@inpulse-ui/visually-hidden';
export function Demo() { return ( <Button size="md" icon> <Gear /> <VisuallyHidden>Settings</VisuallyHidden> </Button> );}This component is a slight expansion of the Visually Hidden developed and maintained by Radix UI.
Useful in certain scenarios as an alternative to the traditional use of aria-label or aria-labelledby.
Installation
Section titled “Installation”pnpm add @inpulse-ui/visually-hiddenbun add @inpulse-ui/visually-hiddenyarn add @inpulse-ui/visually-hiddennpm install @inpulse-ui/visually-hiddenAPI Reference
Section titled “API Reference”The only component of Visually Hidden.
| Prop | Type | Default Value | Required |
asChild | boolean | false | No |
label | string | - | No |
Anything you put inside this component or set with label will be hidden from the screen but will be announced by screen readers.
<VisuallyHidden>Settings</VisuallyHidden>Examples
Section titled “Examples”Children
Section titled “Children”This is the most common way to use Visually Hidden.
import { Button } from '@inpulse-ui/button';import { Gear } from '@inpulse-ui/icons';import { VisuallyHidden } from '@inpulse-ui/visually-hidden';
export function Demo() { return ( <Button size="md" icon> <Gear /> <VisuallyHidden>Settings</VisuallyHidden> </Button> );}It is possible to obtain the same result through the label property.
import { Button } from '@inpulse-ui/button';import { Gear } from '@inpulse-ui/icons';import { VisuallyHidden } from '@inpulse-ui/visually-hidden';
export function Demo() { return ( <Button size="md" icon> <Gear /> <VisuallyHidden label="Settings" /> </Button> );}Built with by Jo Santana in Brazil.
© 2026 Inpulse. All rights reserved.