YAMDE
Y.A.M.D.E - yet another markdown editor.
Demo: View on Codesandbox.io
๐ฑ Features
- Responsive
- Light/dark mode support
- Lightweight: Bundlephobia
๐ง Installation
npm install yamde
๐ป Usage
Example implementation:
import React, { useState } from 'react'
import Yamde from 'yamde'
export const App = () => {
const [text, setText] = useState('')
return <Yamde value={text} handler={setText} theme="light" />
}
๐จ Themes
There are two available themes: light
and dark
.
This can be controlled via the theme
prop (defaults to light
if non specified).
<Yamde value={text} handler={setText} theme="light" />
<Yamde value={text} handler={setText} theme="dark" />