Unlayer Examples
Documentation

Simple Email


In this example, we will run the editor in email mode with minimal configuration.

unlayer.init({
  id: 'editor-container',
  displayMode: 'email',
});

Preview


Dark Mode

You can also run the editor in dark mode.

unlayer.init({
  id: 'editor-container',
  displayMode: 'email',
  appearance: {
    theme: 'dark',
  },
});

Preview