Clarify Alert ARIA documentation

This commit is contained in:
Koen Vlaswinkel
2023-10-12 09:41:47 +02:00
parent 5f4e9d4879
commit cce5a989cf

View File

@@ -92,7 +92,9 @@ type Props = {
* important enough to require the user's immediate attention.
*
* Can be left out if the alert is not important enough to require the user's
* immediate attention.
* immediate attention. In this case, no ARIA role will be set and the alert
* will be read as normal text. The user will not be notified about any changes
* to the alert.
*/
role?: "alert" | "status";
};