Notice that you cannot trigger the alert with the space key.
Accessible button
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import{ Command }from"ariakit/command";import"./style.css";exportdefaultfunctionExample(){return(<div><p>Notice that you cannot trigger the alert with the space key.</p><Commandas="div"className="button"onClick={()=>alert("Accessible button clicked")}clickOnSpace={false}>
Accessible button
</Command></div>);}