Variable getButtonAriaProps
getButtonAriaProps: (
label: string,
options?: {
controls?: string;
describedBy?: string;
isExpanded?: boolean;
isPressed?: boolean;
},
) => {
"aria-controls"?: string;
"aria-describedby"?: string;
"aria-expanded"?: boolean;
"aria-label": string;
"aria-pressed"?: boolean;
}
Type Declaration
- (
label: string,
options?: {
controls?: string;
describedBy?: string;
isExpanded?: boolean;
isPressed?: boolean;
},
): {
"aria-controls"?: string;
"aria-describedby"?: string;
"aria-expanded"?: boolean;
"aria-label": string;
"aria-pressed"?: boolean;
} Parameters
- label: string
Optionaloptions: {
controls?: string;
describedBy?: string;
isExpanded?: boolean;
isPressed?: boolean;
}
Returns {
"aria-controls"?: string;
"aria-describedby"?: string;
"aria-expanded"?: boolean;
"aria-label": string;
"aria-pressed"?: boolean;
}
ARIA props object
Generate ARIA props for a button