package tw

Build not checked
  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.1.tbz
sha256=2549905d8afca0e8e71d716c926743fb752e291d05ebd0b3e7007f843e2bbdb7
sha512=de9236e763845d39a234c27bfd9329c86dac6527914b08c1c70535aa110e34f28d8932407ab0fec7e674ca13b7a0bda2cd8908a9be1fdcd72691cf4babf53bf1

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.