📄 ink/hooks/use-is-screen-reader-enabled

File: use-is-screen-reader-enabled.md | Updated: 11/16/2025

useIsScreenReaderEnabled

Returns whether a screen reader is enabled. This is useful when you want to render different output for screen readers.

Usage

import {useIsScreenReaderEnabled, Text} from 'ink';

const Example = () => {
	const isScreenReaderEnabled = useIsScreenReaderEnabled();

	return (
		<Text>
			{isScreenReaderEnabled
				? 'Screen reader is enabled'
				: 'Screen reader is disabled'}
		</Text>
	);
};

Related