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 {
Invisible,
Button,
Icon,
} from '@fintech-sandpit/ui/react';
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