OrderList

OrderList is used to sort a collection.

  • 1The Shawshank Redemption
  • 2Inception
  • 3Interstellar
  • 4The Dark Knight
  • 5Pulp Fiction
  • 6Baby Driver
  • 7Whiplash
  • 8Eternal Sunshine of the Spotless Mind
  • 9La La Land
  • 10Parasite
No selected item
PREVIEW

Selection-based reordering with move buttons. Click to select items, then use the buttons to move them up, down, to top, or to bottom.

  • 1The Shawshank Redemption
  • 2Inception
  • 3Interstellar
  • 4The Dark Knight
  • 5Pulp Fiction
  • 6Baby Driver
  • 7Whiplash
  • 8Eternal Sunshine of the Spotless Mind
  • 9La La Land
  • 10Parasite
No selected item
basic-demo

Combine with Checkbox for a visual multi-select experience alongside drag-and-drop reordering.

  • The Shawshank Redemption
  • Inception
  • Interstellar
  • The Dark Knight
  • Pulp Fiction
  • Baby Driver
  • Whiplash
  • Eternal Sunshine of the Spotless Mind
  • La La Land
  • Parasite
No selected item
checkbox-demo

Enable the filter property and define the searchable properties with filterFields to filter the list against a property such as name.

No results found
  • No available options
No available optionsNo selected item
filter-demo

For custom content support define an option template that gets the item instance as a parameter. In addition header slot is provided for further customization.

  • No available options
No available optionsNo selected item
template-demo

Screen Reader

Value to describe the listbox can be provided with listProps by passing aria-labelledby or aria-label props. The list element has a listbox role with the aria-multiselectable attribute. Each list item has an option role with aria-selected and aria-disabled as their attributes.

Controls buttons are button elements with an aria-label that refers to the aria.moveTop, aria.moveUp, aria.moveDown and aria.moveBottom properties of the locale API by default, alternatively you may use moveTopButtonProps, moveUpButtonProps, moveDownButtonProps and moveBottomButtonProps to customize the buttons like overriding the default aria-label attributes.

ListBox Keyboard Support

KeyFunction
tabMoves focus to the first selected option, if there is none then first option receives the focus.
up arrowMoves focus to the previous option.
down arrowMoves focus to the next option.
enterToggles the selected state of the focused option.
spaceToggles the selected state of the focused option.
homeMoves focus to the first option.
endMoves focus to the last option.
shift + down arrowMoves focus to the next option and toggles the selection state.
shift + up arrowMoves focus to the previous option and toggles the selection state.
shift + spaceSelects the items between the most recently selected option and the focused option.
control + shift + homeSelects the focused options and all the options up to the first one.
control + shift + endSelects the focused options and all the options down to the first one.
control + aSelects all options.

Buttons Keyboard Support

KeyFunction
enterExecutes button action.
spaceExecutes button action.
Theme Designer