ReactMaterial3/src/types/aria.ts

35 lines
1.1 KiB
TypeScript

export interface AriaProps {
ariaLabel?: string;
ariaLabelledby?: string;
ariaDescribedby?: string;
ariaControls?: string;
ariaExpanded?: boolean;
ariaHidden?: boolean;
ariaInvalid?: boolean;
ariaRequired?: boolean;
ariaDisabled?: boolean;
ariaPressed?: boolean;
ariaChecked?: boolean;
ariaSelected?: boolean;
ariaCurrent?: 'page' | 'step' | 'location' | 'date' | 'time' | 'true' | 'false';
ariaLive?: 'off' | 'polite' | 'assertive';
ariaAtomic?: boolean;
ariaRelevant?: 'additions' | 'removals' | 'text' | 'all';
ariaBusy?: boolean;
ariaDropeffect?: 'copy' | 'move' | 'link' | 'execute' | 'popup' | 'none';
ariaDragged?: boolean;
ariaGrabbed?: boolean;
ariaHaspopup?: boolean | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog';
ariaLevel?: number;
ariaMultiline?: boolean;
ariaMultiselectable?: boolean;
ariaOrientation?: 'horizontal' | 'vertical';
ariaPlaceholder?: string;
ariaReadonly?: boolean;
ariaSort?: 'ascending' | 'descending' | 'none' | 'other';
ariaValuemax?: number;
ariaValuemin?: number;
ariaValuenow?: number;
ariaValuetext?: string;
role?: string;
}