Update v4.2 - New components, 10+ framework guides, and quality improvements. Visit Changelog

Tailwind CSS Context Menu

Use a context menu to provide users with relevant actions and options via a right-click, enhancing interactivity and user experience on your site.

Requires JS

Note that this component requires the use of the third-party Floating UI and Preline Dropdown plugin, else you can skip this message if you are already using Preline UI as a package.

Default context menu

Use [--trigger:contextmenu] to open the menu on right-click.

© 2026 Preline Labs.