File: use-is-screen-reader-enabled.md | Updated: 11/16/2025
Returns whether a screen reader is enabled. This is useful when you want to render different output for screen readers.
import {useIsScreenReaderEnabled, Text} from 'ink';
const Example = () => {
const isScreenReaderEnabled = useIsScreenReaderEnabled();
return (
<Text>
{isScreenReaderEnabled
? 'Screen reader is enabled'
: 'Screen reader is disabled'}
</Text>
);
};