Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

discord-embed-visualizer

artdude54343GPL-3.01.1.0TypeScript support: included

react, material, material-ui, discord, discord-embed, generator

readme

Discord Embed Visualizer

React component for generating and visualizing Discord Embeds

License: GPL v3


Installation

// Via NPM
npm install discord-embed-visualizer

// Via Yarn
yarn add discord-embed-visualizer

Usage

import { Generator, Visualizer } from 'discord-embed-visualizer';
<Generator
    defaultValue={ default_embed_data }
    onChange={ change_event }
/>
<Visualizer
    bot={{ name: '', iconUrl: '' }} //optional
    embed={ discord_embed_object }
/>

Examples

A demo is available on the github repo, 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.