Module Tw_html.Aria

Aria module

Accessibility attributes following ARIA standards.

val label : string -> attr

label "description" creates an aria-label attribute.

val labelledby : string -> attr

labelledby "id" creates an aria-labelledby attribute.

val describedby : string -> attr

describedby "id" creates an aria-describedby attribute.

val hidden : attr

hidden is the aria-hidden="true" attribute.

val expanded : bool -> attr

expanded true creates an aria-expanded attribute.

val current : string -> attr

current "page" creates an aria-current attribute.

val role : string -> attr

role "navigation" creates a role attribute.