# Editor (/text/editor)





<ComponentPreview name="editor-demo" description="A minimal rich text editor with formatting tools." />

## Installation [#installation]

<CodeTabs>
  <TabsList>
    <TabsTrigger id="cli">
      CLI
    </TabsTrigger>

    <TabsTrigger id="manual">
      Manual
    </TabsTrigger>
  </TabsList>

  <TabsContent id="cli">
    ```bash
    npx shadcn@latest add @preskok/editor
    ```
  </TabsContent>

  <TabsContent id="manual">
    <Steps>
      <Step>
        Copy and paste the following code into your project.

        <ComponentSource name="editor" title="registry/preskok/ui/preskok-ui/minimal-tiptap/minimal-tiptap.tsx" />
      </Step>

      <Step>
        Update the import paths to match your project setup.
      </Step>
    </Steps>
  </TabsContent>
</CodeTabs>

## Usage [#usage]

```tsx
import { Editor } from "@/components/ui/preskok-ui/minimal-tiptap/minimal-tiptap"

export function EditorDemo() {
  return <Editor placeholder="Start writing..." />
}
```

## Examples [#examples]

<ComponentPreview name="editor-demo" description="A complete editor with starter content." />
