# Playground Template

A minimal template for building rich-text editors with [Plate](https://platejs.org/) and Next.js 15.

## Features

- Next.js 15 App Directory
- [Plate](https://platejs.org/) editor
- [shadcn/ui](https://ui.shadcn.com/)

## Installation

Choose one of these methods:

### 1. Using CLI (Recommended)

```bash
npx shadcx@latest init plate
```

```bash
npx shadcx@latest add plate/editor-basic
```

### 2. Using Template

[Use this template](https://github.com/udecode/plate-template/generate), then install dependencies:

```bash
pnpm install
```

## Development

```bash
pnpm dev
```

Visit http://localhost:3000/editor to see the editor in action.

## Upgrade

Using the CLI, you can upgrade to `editor-ai` by running:

```bash
npx shadcx@latest add editor-ai -r plate -o
```
