import React, { useState } from "react"; import { render, Text, Box, useInput } from "#/index.ts"; function AriaExample() { const [checked, setChecked] = useState(false); useInput((key) => { if (key === " ") { setChecked(!checked); } }); return ( Press spacebar to toggle the checkbox. This example is best experienced with a screen reader. {checked ? "[x]" : "[ ]"} This text is hidden from screen readers. ); } render();