Skip to content

An interactive Editor that has Preview on right side to view the updates on the fly. Every change quickly reflects and this repository also contains reusable UI components.

AdarshSinghal/post-editor-with-preview

Repository files navigation

Getting Started

After cloning, run npm install

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Inter, a custom Google Font.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

This is how the <EditorWithPreview/> component looks like. You can turn off the intro using <EditorWithPreview showIntro={false} />

image

1 Article → n Sections
1 Section → n Elements
Either 1 Element → 1 Paragraph
Or 1 Element → 1 List
1 List → n Items

Components

This folder contains reusable components.

TextField

Unlike simple textfield, this textfield has battery indicator that shows how good the length is. As you type, the bar count decreases and color changes, ultimately it becomes red when you are out of characters.

image

Requirement specification for better understandability

image image image

Clone, Run and Explore more...

About

An interactive Editor that has Preview on right side to view the updates on the fly. Every change quickly reflects and this repository also contains reusable UI components.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published