# Building components in plain HTML

> Part of Tray UI 0.4.1, a design system in plain HTML and CSS (MIT licence). Every page: https://trayui.com/llms.txt

How to build menus, dialogs, tabs, a combobox, a date picker and other components in plain HTML, CSS and JavaScript, accessible from the start.

- [Modal dialogs in plain HTML: focus and Escape](https://trayui.com/articles/modal-dialog-html.md), 18 November 2026: The dialog element and showModal(): the top layer, an inert page, Escape, focus on open and on close, a name, the backdrop, scroll lock and alert dialogs.
- [An autocomplete combobox without a library](https://trayui.com/articles/combobox-without-library.md), 18 November 2026: An autocomplete combobox in plain HTML and JavaScript: role="combobox", a listbox, aria-activedescendant, filtering, the keys and a spoken count.
- [A date picker in plain HTML and JavaScript](https://trayui.com/articles/date-picker-html.md), 18 November 2026: When <input type="date"> is enough, and how to build a calendar grid: arrow keys, Page Up and Down, Home and End, month buttons, the date in the name.
- [Accessible tabs in HTML: roles and arrow keys](https://trayui.com/articles/accessible-tabs-html.md), 18 November 2026: Tabs in plain HTML and JavaScript: tablist, tab and tabpanel, aria-selected, a roving tabindex, the arrow keys, Home and End, and when tabs should be links.
- [A command palette (Cmd+K) in plain HTML](https://trayui.com/articles/command-palette-html.md), 18 November 2026: A command palette opened with Cmd+K or Ctrl+K in plain HTML: a modal dialog, a combobox over a listbox, filtering, groups and aria-activedescendant.
- [Nested submenus that work from the keyboard](https://trayui.com/articles/nested-submenus-keyboard.md), 18 November 2026: A submenu in plain HTML and JavaScript: its markup, the keys that open and close it, aria-expanded, where focus goes, and the pointer, with Tray UI's menus.
- [Accessible tooltips that pass WCAG 1.4.13](https://trayui.com/articles/accessible-tooltips.md), 18 November 2026: A tooltip in plain HTML and JavaScript that meets WCAG 1.4.13: hoverable, dismissible with Escape, persistent, tied to its control, and what to use instead.
- [A custom select that says its value](https://trayui.com/articles/custom-select-value.md), 18 November 2026: A custom select in HTML and JavaScript whose button says its label and its value, the keys of its list, and when the native select element is the better choice.
- [Tag input: chips, a limit and spoken errors](https://trayui.com/articles/tag-input-chips.md), 18 November 2026: A tag input in plain HTML and JavaScript: chips with a remove button, Backspace, a limit, repeats, and errors marked on the text field and said aloud.
- [A slider that says its unit with aria-valuetext](https://trayui.com/articles/slider-aria-valuetext.md), 18 November 2026: A native range input that says "30 km" where it would say "30": aria-valuetext, a visible value, words for the steps, the keys, and Tray UI's slider.
- [A paginated data table that keeps focus](https://trayui.com/articles/paginated-table-focus.md), 18 November 2026: A sortable, paged data table in plain HTML that keeps focus where the person is, says each new sort and page aloud, and stays a real table throughout.
- [A one-time code input with paste and autofill](https://trayui.com/articles/one-time-code-input.md), 18 November 2026: A one-time code field that takes a typed code, a pasted one and SMS autofill: one-time-code, inputmode, cells or one field, and why one field can be better.
- [Show password: aria-pressed or a new label](https://trayui.com/articles/show-password-button.md), 18 November 2026: A show password button in HTML: a constant name with aria-pressed, or a name that changes to Hide password. What each says, and which Tray UI uses where.

Page 1 of 2, articles 1 to 13 of 17. The other pages: [2](https://trayui.com/articles/topics/components/page/2.md).
