VisuallyHidden
▸ VisuallyHidden(props): null | ReactElement<any, string | JSXElementConstructor<any>>
Renders an element that is visually only to screen readers
Parameters
| Name | Type |
|---|---|
props | VisuallyHiddenProps & RefAttributes<HTMLDivElement> |
Returns
null | ReactElement<any, string | JSXElementConstructor<any>>
Example
<a href="#">
Learn more<VisuallyHidden> about brazilian beaches</VisuallyHidden>
</a>Defined in
node_modules/.pnpm/@types+react@18.2.14/node_modules/@types/react/ts5.0/index.d.ts:355