Skip to content
View Markdown

ContextMenu and swipe actions ​

Commands attached to a row through a context menu or an edge swipe.

tsx
import { ListRow, Label, LabeledContent } from '@satinhq/kit'

Example ​

Try holding or swiping the Persuasion row on a device.

Attach a context menu ​

Pass an array of Action values to contextMenu on a supported row. Each action has an id, label and optional press handler.

Declare edge actions ​

Pass swipeActions with an actions array. Use edge to select leading or trailing and allowsFullSwipe to control committing the first action. Try it on a device.

API ​

Scroll horizontally to read every column.

PropTypeDescription
contextMenureadonly Action[]Commands for a held row.
swipeActionsSwipeActionsEdge action configuration.
edge'leading' | edge`The swipe edge, trailing by default.
allowsFullSwipebooleanWhether a full swipe commits.

Related: Quick start, List, Screen.

:::

Satin runs on the Lumen rendering engine and is open source under the MIT License.