Calm motion: animations on this site only fade, with no movement
A to Z index
A list in groups by first letter, with a bar of letters to jump
Lists many services, topics, or terms, so people can find one by its name. Government sites often have one page like this for all their services.
Basic
B
C
D
E
F
H
I
L
M
P
S
T
V
W
Other
itemsis the list. Each item has alabeland an optionalhref.- The items sort in the order of
locale, with numbers in their natural order. They group by the first letter without its accent, so "Évian" goes under E. - A name that starts with a sign that is not in
lettersgoes under "#". Screen readers hear "Other" for it. - The bar on top links to each letter that has names. A letter without names stays in its place, dim and dashed, so the bar does not move. The bar stays on top when you scroll. If your page has a fixed header, set
--bless-az-topto its height. - Each letter is a heading of level 3, so screen reader users can jump from letter to letter.
letterssets the letters of the bar (default A to Z). Change the words withlabelsor a label pack. The API table lists the keys.
Usage
ts
import { BlessAzIndex } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
items* | BlessAzItem[] | — | |
letters | string | "ABCDEFGHIJKLMNOPQRSTUVWXYZ" | the letters of the bar; names that start with another sign go under "#" |
locale | string | "en" | |
labels | Partial<{ letters: string; other: string; }> | — |