discord-embed-visualizer
Version:
<div align="center">
58 lines (39 loc) • 1.44 kB
Markdown
# Discord Embed Visualizer
<div align="center">
[React](https://reactjs.org/) component for generating and visualizing Discord Embeds
[](https://www.gnu.org/licenses/gpl-3.0)





</div>
## Installation
```bash
// Via NPM
npm install discord-embed-visualizer
// Via Yarn
yarn add discord-embed-visualizer
```
## Usage
```ts
import { Generator, Visualizer } from 'discord-embed-visualizer';
```
```jsx
<Generator
defaultValue={ default_embed_data }
onChange={ change_event }
/>
```
```jsx
<Visualizer
bot={{ name: '', iconUrl: '' }} //optional
embed={ discord_embed_object }
/>
```
## Examples
> A demo is available on the [github repo](https://github.com/artdude543/discord-embed-visualizer), just clone it, install packages `yarn install | npm install` and run the start script `yarn start | npm start`.
> Or if that's too much effort, you can just check out MRVDOG's [online demo](https://dev.mrv.dog/examples/discord-embed-visualizer).