Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nylas/components-composer

Package Overview
Dependencies
Maintainers
9
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nylas/components-composer

> This document is still work in progress!

  • 0.0.39
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
769
decreased by-9.64%
Maintainers
9
Weekly downloads
 
Created
Source

Composer

This document is still work in progress!

Composer component is used for sending emails.

Installation

You can use composer in two ways:

  • via CDN
  • install using yarn

Props

Component accepts next props:

Methods:

  • open()
  • close()

Data:

  • id
  • change
  • options
  • from
  • to
  • cc
  • bcc
  • value
  • send

Hooks:

  • Send:

    • send (implementation)
    • beforeSend
    • onSend
    • onSendError
    • afterSend
  • File uploads (attachments):

    • fileUpload (implementation)
    • beforeAttachmentUpload
    • onAttachmentUpload
    • onAttachmentUploadError
    • afterAttachmentUpload
  • onFromChange (use onchange with additional argument)

  • onToChange (use onchange with additional argument)

  • onCcChange (use onchange with additional argument)

  • onBccChange (use onchange with additional argument)

  • onSubjectChange

  • onBodyChange

  • onFilesChanged

UI:

  • popup
  • visible
  • showSubject
  • showHeaders

Events:

  • {action: 'subject-changed' }
  • body-changed
  • attachment-added
  • attachment-removed
  • {event: 'from-changed', action: 'add'}
  • {event: 'from-changed', action: 'remove'}

Styling

  • Composer can be styled by choosing theme or
  • Providing a stylesheet with css variables

FAQs

Package last updated on 03 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc