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.0.0.tbz
sha256=198a142b69828a53a0c8812b70f279be6c216b411b370c3433d5fe94be5d495e
sha512=fe0a94ef1ff22e19c669d4370c6b555bf323053e05a8cfc315196beb312703f68ec62966b2b7780b6a79c2e8db88e8aa816d7fe3cb3a2044e6f52ed4d839a3b4

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.