Command
Search and run commands from a list.Examples
Installation
Install the package, then import only the components a route uses. Exports are tree-shakable.
Install
pnpm add fractalsvelteImport
<script lang="ts">
import { Command } from 'fractalsvelte';
</script>Usage
Usage
<script lang="ts">
import { Command } from 'fractalsvelte';
</script>
<Command />Props
| Prop | Type | Default | Description |
|---|---|---|---|
items | Item[] | - | The list of items to render. |
placeholder | string | 'Type a command…' | Placeholder text shown when empty. |
value | string | '' | The selected value. Supports bind:. |
onchange | (value: string) => void | - | Called when the value changes. |
