This commit is contained in:
chenhuanjie
2025-11-05 15:12:20 +08:00
parent 55a3b69a8e
commit f6f76a17e6
3 changed files with 0 additions and 22 deletions

View File

@@ -1,6 +0,0 @@
{
"extensions": {
"disabled": []
},
"$version": 2
}

View File

@@ -1,8 +0,0 @@
# Ink Library Screen Reader Guidance
When building custom components, it's important to keep accessibility in mind. While Ink provides the building blocks, ensuring your components are accessible will make your CLIs usable by a wider audience.
## General Principles
Provide screen reader-friendly output: Use the useIsScreenReaderEnabled hook to detect if a screen reader is active. You can then render a more descriptive output for screen reader users.
Leverage ARIA props: For components that have a specific role (e.g., a checkbox or a button), use the aria-role, aria-state, and aria-label props on <Box> and <Text> to provide semantic meaning to screen readers.