chore: set default role to group, add aria-roledescription

This commit is contained in:
Abbey Yacoe
2025-06-02 13:19:27 +02:00
parent cdc08f1b54
commit 28b0430606
3 changed files with 10 additions and 5 deletions
+6 -3
View File
@@ -75,12 +75,15 @@ export type NodeBase<
handles?: NodeHandle[];
/**
* The ARIA role attribute for the node element, used for accessibility.
* Common values for nodes might be 'button', 'group', 'listitem', etc.
* When not specified, focusable nodes default to 'button' role.
* @default "button" (for focusable nodes)
* @default "group"
*/
ariaRole?: AriaRole;
/**
* A description of the node's role, used for accessibility.
* @default "node"
*/
ariaRoleDescription?: string;
measured?: {
width?: number;
height?: number;