Command Palette

format
  • Format Document
  • Format Selection
  • Reveal in File Explorer
About this piece

Command Palette

Command palette card with a search bar and ranked results.

Usage

The import and the props worth knowing about, in one place.

import { Editor9 } from "@/components/beste/piece/editor9";

<Editor9
  query="format"
  commands={[
    {
      "label": "Format Document"
    },
    {
      "label": "Format Selection"
    },
    {
      "label": "Reveal in File Explorer"
    }
  ]}
  bordered={false}
/>

More Editor pieces

View all Editor
Theme
return greet(name);
Hania
greet.ts
export function greet(name: string) {
return `Hello, ${name}!`;
}
 
// Ship it
Zen Modemanifesto.md
  • Dashboard
  • state
  • render
  • computeStats
--primary: #f43f5e;
--accent: #8b5cf6;
--surface: #0ea5e9;