Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mdtehseenkhan/nova-text
https://github.com/mdtehseenkhan/nova-text
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/mdtehseenkhan/nova-text
- Owner: MdTehseenKhan
- Created: 2024-03-02T16:25:02.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-02T17:39:01.000Z (10 months ago)
- Last Synced: 2024-03-02T18:36:25.877Z (10 months ago)
- Language: TypeScript
- Size: 108 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Introduction
A simple editor but a value add feature to your next product. Stay tuned there is more to come. It is a WYSIWYG editor.
Enjoy 🚀
[View Demo](https://nova-text.vercel.app)
[Bug Report here](https://www.github.com/MdTehseenKhan/nova-text/issues)
NPM Package: [https://www.npmjs.com/package/nova-text](https://www.npmjs.com/package/nova-text)
## Installation
To use Nova Text in your project, you can run the following command to install the `nova-text`:
```bash
npm i nova-text
```Here is an example of how you can use it in your project.
```tsx App.tsx
import { useState } from 'react'
import { Editor, EditorContent } from 'nova-text/editor'export default function App() {
const [value, setValue] = useState('')
const onChange = (value: string) => setValue(value)// OR you can efficiently use it with react-hook-form with zod validation.
return (
Nova Text Editor Example
)
}
```One of the use-cases is to use it as a textarea. The value of editor will be in HTML string, which can be used in the `` component.