0.7.1 • Published 3 years ago

@slice-and-dice/govuk-react-visually-hidden v0.7.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

VisuallyHidden

Import

  import VisuallyHidden from '@govuk-react/visually-hidden';

Usage

This component is primarily intended to be used for material that will be visually hidden but visible to screen-reader devices.

Simple

<VisuallyHidden>Example</VisuallyHidden>

References

Properties

PropRequiredDefaultTypeDescription
childrentrue | node | Content to be hidden
focusablefalseboolAllow component to be focusable, and thus become visible
importanttrueboolSet styles with !important