# Slab 0.3.1

> Eight new components, from Table to Date Range Picker, submenus in Menu, and Listboxes of thousands of Options.

0.3.1 brings eight new components, submenus for Menu, and a `virtual` attribute for Listbox and Combobox that keeps a list of thousands of Options quick. It's a patch release with nothing to restyle, so updating is safe.

## TL;DR

- Eight new components, each headless, with its keyboard, ARIA and form support done.
- Table, Grid List and Sortable List for data, and Date Picker and Date Range Picker for days.
- Menus open submenus, from the keyboard, a click or the pointer resting on a Menu Item.
- Listbox and Combobox take `virtual`, and are much faster with long lists either way.
- Nothing to restyle: every change adds to what you have.

## New components

- [Table](../components/table.md): Rows and cells that components can render into, laid out like a native `<table>`. A `sortable` Column Header sorts its column and says how.
- [Alert Dialog](../components/alert-dialog.md): A modal Dialog that asks before something can't be undone. Focus starts on Cancel, and a click outside doesn't close it.
- [Toggle Button](../components/toggle-button.md): A native button with `aria-pressed`, for one setting that's on or off, such as Bold or Mute.
- [Grid List](../components/grid-list.md): Rows that hold their own buttons, links and checkboxes. Up and Down move between rows, Left and Right into them, and rows can be selected.
- [Date Picker](../components/date-picker.md): A Date Field with a button that opens a Calendar in a popover, the same in every browser and yours to style.
- [Search Field](../components/search-field.md): A search input with a button that clears it, and Escape that does the same in every browser.
- [Date Range Picker](../components/date-range-picker.md): A Date Range Field with one range Calendar in a popover, so the start and the end are picked together.
- [Sortable List](../components/sortable-list.md): A list put in order by dragging each item's handle or with the keyboard, while a screenreader hears where the item is.

## Also new

- [Submenus](../components/menu.md): A `slab-menu` inside another, with a `slab-menu-item` as its anchor, opens beside that Menu Item. Right, Enter or a pause under the pointer opens it, and Left or Escape closes it.
- [Virtual lists](../components/listbox.md): `virtual` on Listbox and Combobox lays out only the Options near view, while the keys, typeahead, filtering and selection still reach every one.
- [Showcase](../showcase.md): Four pages built from Slab and themed four ways, to see the components together in something like an app.

## Fixes

### Screenreaders

- The anchor's `aria-details` points at the card, and a `label` makes the card a named group. In Hover Card.

### Speed

- A thousand Options appear at once rather than in seconds, since an Option that connects or changes no longer makes work for every other. In Listbox, Combobox.

## Upgrade

```sh
pnpm add slab-elements@0.3.1
```
