ARIA roles define how elements are exposed to assistive technologies like screen readers.
Some roles require specific ARIA properties to function correctly and provide meaningful information to users.
Omitting these required properties can result in incomplete or confusing experiences for users of assistive technologies.
AriaAttributes["aria-valuenow"]?: number |undefined
Defines the current value for a range widget.
@see ― aria-valuetext.
aria-valuenow="5" />
Error ts(2322) ― Type '{ role: "slider"; "aria-valuenow": string; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
Type '{ role: "slider"; "aria-valuenow": string; }' is not assignable to type 'HTMLAttributes<HTMLDivElement>'.
Types of property '"aria-valuenow"' are incompatible.
Type 'string' is not assignable to type 'number'.
AriaAttributes["aria-valuenow"]?: number |undefined
Defines the current value for a range widget.
@see ― aria-valuetext.
aria-valuenow="5"
AriaAttributes["aria-valuemax"]?: number |undefined
Defines the maximum allowed value for a range widget.
aria-valuemax="10"
AriaAttributes["aria-valuemin"]?: number |undefined
Defines the minimum allowed value for a range widget.
aria-valuemin="0" />
Error ts(2322) ― Type '{ role: "slider"; "aria-valuenow": string; "aria-valuemax": string; "aria-valuemin": string; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
Type '{ role: "slider"; "aria-valuenow": string; "aria-valuemax": string; "aria-valuemin": string; }' is not assignable to type 'HTMLAttributes<HTMLDivElement>'.
Types of property '"aria-valuemax"' are incompatible.
Type 'string' is not assignable to type 'number'.
Defines the hierarchical level of an element within a structure.
aria-level="2" />
Error ts(2322) ― Type '{ role: "heading"; "aria-level": string; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
Type '{ role: "heading"; "aria-level": string; }' is not assignable to type 'HTMLAttributes<HTMLDivElement>'.
Types of property '"aria-level"' are incompatible.
Type 'string' is not assignable to type 'number'.