Skip to content
Theme

Layer list

The layers or presets of an editor: one selected at a time, each with a button that shows or hides it.

Examples

One selected; the background hidden

Layers

serre
compass
Background

Props

LayerList

The layers, or the presets, of an editor: one selected, each one showable or hideable.

PropTypeDefaultDescription
labelstring—Names the list.
layersreadonly Layer[]—
selected?string—
onSelect?((id: string) => void)—
onToggleVisible?((id: string) => void)—When given, each layer has a button that shows or hides it.

Keyboard

KeyDoes
ArrowUp or ArrowDownMove between layers
Space or EnterSelect the focused layer
ArrowRightMove to the layer's show or hide button

Accessibility

  • A grid list: each row is selectable, and its visibility button is named for the layer.