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 } from ' @fintech-sandpit/ui/react ' ;
import { Button } from ' @fintech-sandpit/ui/react ' ;
import { Icon } from ' @fintech-sandpit/ui/react ' ;
import { faCheck } from ' @fortawesome/free-solid-svg-icons ' ;
// Icon-only button with accessible text
< Icon as = { faCheck } boxSize = " 1em " />
< Invisible > Submit form </ Invisible >
import { Invisible } from ' @fintech-sandpit/ui/vue ' ;
import { Button } from ' @fintech-sandpit/ui/vue ' ;
import { Icon } from ' @fintech-sandpit/ui/vue ' ;
import { faCheck } from ' @fortawesome/free-solid-svg-icons ' ;
<!-- Icon-only button with accessible text -->
< Icon : as = " faCheck " box-size = " 1em " />
< Invisible > Submit form </ Invisible >
Name Type Default Description asChildbooleanfalseWhether to render the invisible component as a child
Name Type Default Description as-childbooleanfalseWhether to render the invisible component as a child