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
#shouldAlertScreenReader
boolean
role
attribute of the component - Defaults to undefined#Types
ScreenReaderTextProps
: props of theScreenReaderText
component processed by stratusScreenReaderTextInterface
:ScreenReaderTextProps
extended byHTMLAttributes<HTMLDivElement>
Read more about types here