{# Renders a standalone command menu component with search and keyboard navigation. @param id {string} [optional] - Unique identifier for the command component. @param items {array} [optional] - Array of items to render (alternative to using caller). @param placeholder {string} [optional] [default="Type a command or search..."] - Placeholder text for the search input. @param empty_text {string} [optional] [default="No results found."] - Text displayed when no results match the search. @param main_attrs {object} [optional] - Additional HTML attributes for the main container div. @param input_attrs {object} [optional] - Additional HTML attributes for the search input. @param listbox_attrs {object} [optional] - Additional HTML attributes for the listbox div. #} {% macro command( id=None, items=None, placeholder="Type a command or search...", empty_text="No results found.", main_attrs={}, input_attrs={}, listbox_attrs={} ) %} {% set id = id or ("command-" ~ range(100000, 999999) | random | string) %}