File: command-palette.md | Updated: 11/15/2025
5-day Mini-Course
Short, tactical video lessons from the creator of Tailwind CSS, delivered directly to your inbox every day for a week.
A commercial license is required to use Tailwind Plus Elements. Purchase Tailwind Plus to obtain a license.
The <el-command-palette> component provides a fast, keyboard-friendly way for users to search and select from a predefined list of options. It's typically displayed inside a dialog β often triggered with a Cmd+K shortcut β making it ideal for building power-user features like global searches.
The main command component that manages filtering and coordinates with its child components
| | |
| --- | --- |
| Attributes | |
| name | The form field name for the command when used in forms. |
| value | The selected value of the command. Can be read and set programmatically. |
| Events | |
| change | Dispatched when the active item changes. Detail contains relatedTarget property with the active item or null. |
| Methods | |
| setFilterCallback(cb) | Allows you to customize the filtering behavior of the command. The callback receives an object with query, node and content properties, and should return a boolean. |
| reset() | Resets the command to its initial state. |
Contains all the command items and groups. All focusable children will be considered options.
Optional container for suggestion items that are shown when the input is empty.
Groups related command items together.
Optional element shown when no items match the current query.
Optional preview content shown when a specific item is active.
| | |
| --- | --- |
| Attributes | |
| for | The id of the item this preview content is associated with. |
To view the complete documentation, you must own a Tailwind Plus license and be signed in .
To view the complete documentation, you must own a Tailwind Plus license and be signed in .
To view the complete documentation, you must own a Tailwind Plus license and be signed in .
To view the complete documentation, you must own a Tailwind Plus license and be signed in .
To view the complete documentation, you must own a Tailwind Plus license and be signed in .
To view the complete documentation, you must own a Tailwind Plus license and be signed in .
To view the complete documentation, you must own a Tailwind Plus license and be signed in .
To view the complete documentation, you must own a Tailwind Plus license and be signed in .
To view the complete documentation, you must own a Tailwind Plus license and be signed in .