Advanced.command
Server-rendered
Command palette layout.
This renders the shell of a command palette (input + list + items).
Command palette
General
Profile
Billing
Workspace
Settings
<.command placeholder="Search commands...">
<:group heading="General">
<.item value="profile">Profile</.item>
<.item value="billing">Billing</.item>
</:group>
<:group heading="Workspace">
<.item value="settings">Settings</.item>
</:group>
</.command>
Crew directory
Planet Express
Deliveries
Cargo manifest
Crew
Philip J. Fry
Turanga Leela
Bender Rodríguez
Amy Wong
Hermes Conrad
Dr. John Zoidberg
Professor Farnsworth
Scruffy
Nibbler
<.command placeholder="Find a page or crew member...">
<:group heading="Planet Express">
<.item value="deliveries">Deliveries</.item>
<.item value="manifest">Cargo manifest</.item>
</:group>
<:group heading="Crew">
<.item :for={character <- @crew} value={character.id}>{character.label}</.item>
</:group>
</.command>
Attributes
| Name | Type | Default | Values | Global Includes |
|---|---|---|---|---|
class
|
:string |
— | — | — |
placeholder
|
:string |
"Type a command..."
|
— | — |
rest
|
:global |
— | — | — |
Slots
| Slot | Slot Attributes |
|---|---|
group
|
heading
(:string)
|