# Command

Use command for searchable action menus. Compose input, list, groups, and items. Use
`Command.Dialog` for a modal command palette.

```svelte
<script lang="ts">
	import * as Command from '~/components/command';
</script>

<Command.Root class="rounded-lg border shadow-md">
	<Command.Input placeholder="Type a command or search..." />
	<Command.List>
		<Command.Empty>No results found.</Command.Empty>
		<Command.Group heading="Suggestions">
			<Command.Item>Calendar</Command.Item>
			<Command.Item>Search Emoji</Command.Item>
			<Command.Item>Calculator</Command.Item>
		</Command.Group>
	</Command.List>
</Command.Root>
```