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 fractalsvelte
Import
<script lang="ts">
	import { Command } from 'fractalsvelte';
</script>

Usage

Usage
<script lang="ts">
	import { Command } from 'fractalsvelte';
</script>

<Command />

Props

PropTypeDefaultDescription
itemsItem[]-The list of items to render.
placeholderstring'Type a command…'Placeholder text shown when empty.
valuestring''The selected value. Supports bind:.
onchange(value: string) => void-Called when the value changes.