Skip to content

Commit 29a2079

Browse files
committed
docs: rename Editor to TailwindEditor
1 parent 3efd0a1 commit 29a2079

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

apps/docs/guides/tailwind/setup.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ You can find the full example here: [Tailwind Example](https://github.com/steven
2424
import { EditorContent, EditorRoot } from "novel";
2525
import { useState } from "react";
2626

27-
const Editor = () => {
27+
const TailwindEditor = () => {
2828
const [content, setContent] = useState(null);
2929
return (
3030
<EditorRoot>
@@ -38,7 +38,7 @@ You can find the full example here: [Tailwind Example](https://github.com/steven
3838
</EditorRoot>
3939
);
4040
};
41-
export default Editor;
41+
export default TailwindEditor;
4242
```
4343
<Tip>
4444
`onUpdate` runs on every change. In most cases, you will want to debounce the updates to prevent too many state changes.

apps/docs/package.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "docs",
3+
"version": "0.1.0",
4+
"scripts": {
5+
"dev": "mintlify dev --port 3334"
6+
}
7+
}

0 commit comments

Comments
 (0)