package tw

All checked builds pass
  1. Overview
  2. Docs
On This Page
  1. Aria module
Type-safe Tailwind CSS v4 in OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

tw-1.2.0.tbz
sha256=c6f2f55bdbafd557e7716e4ab2daa012beb2ab2548090fae4a6e53c8016a3b10
sha512=13c066b3b233227d620a28abb724c8aea13c08f8f4b4657f7462d5806aa227568b921523e2675f3cd8ec8597fbe23a0f512e98f143adcf49b64a80ac95e6b740

doc/tw.html/Tw_html/Aria/index.html

Module Tw_html.AriaSource

Aria module

Accessibility attributes following ARIA standards.

Sourceval label : string -> attr

label "description" creates an aria-label attribute.

Sourceval labelledby : string -> attr

labelledby "id" creates an aria-labelledby attribute.

Sourceval describedby : string -> attr

describedby "id" creates an aria-describedby attribute.

Sourceval hidden : attr

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

Sourceval expanded : bool -> attr

expanded true creates an aria-expanded attribute.

Sourceval current : string -> attr

current "page" creates an aria-current attribute.

Sourceval role : string -> attr

role "navigation" creates a role attribute.