Skip to content

Invisible

The Invisible component is used to visually hide content while keeping it accessible to screen readers and other assistive technologies. This is useful for accessibility purposes, such as providing descriptive text for icon-only buttons.

// Import component
import {
Button,
Icon,
Invisible,
} from '@fintech-sandpit/ui/react';
// Import styles (optional)
import '@fintech-sandpit/ui/style/components/button.css';
import '@fintech-sandpit/ui/style/components/icon.css';
import '@fintech-sandpit/ui/style/components/invisible.css';
// Import icons
import { faCheck } from '@fortawesome/free-solid-svg-icons';
<Button iconOnly>
<Icon
as={faCheck}
boxSize="1em"
/>
<Invisible>Submit form</Invisible>
</Button>
NameTypeDefaultDescription
asChildbooleanfalseUse the provided child element as the default rendered element, combining their props and behavior