Skip to main content

Overview

ActionMenuList is a compound component for selecting block types. It auto-generates items from editor plugins and handles block type toggling. Designed to be opened from toolbar “Turn into” buttons, block options menus, etc.
Action menu list screenshot

Features

  • API — controlled/uncontrolled with open/onOpenChange
  • Auto-generated items — reads plugins from editor automatically
  • Two view modessmall for compact menus, default for full display
  • Floating positioning — automatic positioning via Floating UI
  • TypeScript — full type safety

Installation

Basic Usage

API Reference

ActionMenuList (Root)

Root component that manages state and context.
Props: Render Props API:

ActionMenuList.Content

Floating content panel. Auto-generates items if no children provided.
Props:

ActionMenuList.Group

Groups related items together.

ActionMenuList.Item

Individual menu item.
Props:

ActionMenuList.Empty

Empty state when no actions are available.

Examples

With FloatingToolbar

With BlockOptions

Custom Items with Render Props

View Modes

Small View (Compact)

Use for toolbar menus and block options:
  • Smaller icons (20x20)
  • No descriptions shown
  • Compact padding
  • Min width: 180px

Default View (Full)

Use for slash command menus and larger dropdowns:
  • Larger icons (40x40)
  • Descriptions visible
  • Standard padding
  • Min width: 244px

Styling

CSS Variables

Custom Styles

Best Practices

FloatingToolbar

Trigger ActionMenuList from “Turn into” button

BlockOptions

Trigger ActionMenuList from block context menu

SlashCommandMenu

Slash command menu (type / to insert blocks)