package tw

  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.1.2.tbz
sha256=1c25361b85b1bc8246572af86032c413db5cac574e2b94bbe15f97e5ab6dbc47
sha512=cb12417620793e2bbbde350b72b6032eec5c6bb628dae3b28b95adc020db96ecdbdd505d911b9ad58c1b1624827ed47574ceda79414f6f49eafcc653e362800e

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.