A component that visually hides elements and their content but keep them accessible to screen-readers. This is useful for example in combination with <Sheet.Title>
or a <Sheet.Description>
.
<VisuallyHidden.Root>
Presence | Required |
---|---|
Composition | Anywhere |
Underlying element | <span> |
Description
The Root sub-component wraps content to be made visually hidden.
Presence | Optional |
---|---|
Type | `boolean |
Default | undefined |
Description
Defines whether the sub-component underlying element is the default one or the one passed as child of the sub-component.
Values description
true |
The underlying element rendered is the child. |
---|---|
`false | undefined` |
Notes
React.forwardRef()
and pass the received ref to the rendered element.