Skip to main content
K
Last modified: 4/Oct/2024

ScreenReaderText

You can provide text to TTS engines.

#Usage

import { ScreenReaderText } from '@kinsta/stratus' const MyComponent = () => ( <ScreenReaderText> This will happen here. </ScreenReaderText> )

#Props

#children
React.ReactNode
The content of the component - Defaults to undefined
#shouldAlertScreenReader
boolean
sets the role attribute of the component - Defaults to undefined

#Types

  • ScreenReaderTextProps: props of the ScreenReaderText component processed by stratus
  • ScreenReaderTextInterface: ScreenReaderTextProps extended by HTMLAttributes<HTMLDivElement>

Read more about types here