View as Markdown

API reference

@salmonui/dropdowns/listbox

25 exported symbols: 1 component, 2 functions, 13 interfaces, 8 types and 1 constant. Each name links its page with the signature, docs and members.

import { … } from '@salmonui/dropdowns/listbox';

Components

  • ListboxA persistent list of options (WAI-ARIA APG listbox) with single or multiple selection. ref receives the role="listbox" element.

Functions

  • moveItemsMoves the items whose values are in values from source to target, inserted at index of target (default: the end), in source order. Returns [nextSource, nextTar…
  • reorderItemsMoves the items whose values are in values by delta positions (negative: up), keeping their relative order; items stop at the ends of the list (a block that re…

Interfaces

Types

Constants