Fine-tune light, shadows, borders, neumorphic
Light and shadows
Borders
Neumorphic
Data

Sortable <pm-sortable>

List whose rows can be reordered by dragging or with the keyboard.

Full screen
Design review
API release
Docs update
Launch post

This component has no props to try here.

<script type="module"> import '@prismora/css'; import '@prismora/elements/icon'; import '@prismora/elements/sortable'; import { registerIcons } from '@prismora/elements/icon'; import { gripVertical } from '@prismora/icons'; registerIcons([gripVertical]); </script> <pm-sortable label="Priorities"> <div data-value="design"> <pm-icon name="grip-vertical" data-handle></pm-icon> Design review </div> <div data-value="api"> <pm-icon name="grip-vertical" data-handle></pm-icon> API release </div> <div data-value="docs"> <pm-icon name="grip-vertical" data-handle></pm-icon> Docs update </div> <div data-value="launch"> <pm-icon name="grip-vertical" data-handle></pm-icon> Launch post </div> </pm-sortable>

States

Each state is one attribute.

Design review
API release
Docs update
Launch post
Disabled

Overview

Drag rows with a pointer (from a [data-handle] if present, else the whole row), or with the keyboard: focus a row, Space to pick it up, ↑/↓ to move, Space to drop, Esc to cancel. Moves are announced. Children keep their own markup; value lists their data-values in order.

Attributes

AttributeTypeDefaultDescription
labelstring—Accessible name of the list.
disabledboolean—Turn reordering off.

Events

EventReact / Svelte propDescription
pm-reorderonPmReorderOrder changed.

Slots

SlotDescription
(default)Rows (any elements; give each a data-value).