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.0.tbz
sha256=48754ab34d0a97c37f5f2dbf50ce46747ec0ca6d483f5adbb7305fc247fb5315
sha512=f43621b49e77adc23fab3c968e5041188e428228d1930b89c307fc8916c428f1943a5d74c21467219077247021f0ba83fda9234b0dd119dfd14b7f9746332bf7

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.