1.11.8 • Published 3 months ago

@labor-digital/mjml-components v1.11.8

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 months ago

LABOR - MJML Components

This package contains a number of custom mjml components.

Installation

Install this package using npm:

npm install @labor-digital/mjml-components

Currently this package only supports MJML 4.6.*.

Setup

Before using the components they need to be registered. This can be done by adding the following code to a gulp task.

Register specific components

import { registerComponent } from 'mjml-core'
import { LaborResponsiveImage, LaborRoundedButton } from '@labor-digital/mjml-components'

const registerComponents = () => {
  registerComponent(LaborResponsiveImage)
  registerComponent(LaborRoundedButton)
}

exports.build = gulp.series(
  (cb) => {
    registerExternalComponents()
    return cb()
  },
  // do other stuff
)

Register all available components

import { registerComponent } from 'mjml-core'
import * as Components from '@labor-digital/mjml-components'

const registerExternalComponents = () => {
  Object.values(Components)
    .filter((c) => c !== undefined)
    .forEach((component) => registerComponent(component))
}

exports.build = gulp.series(
  (cb) => {
    registerExternalComponents()
    return cb()
  },
  // do other stuff
)

Documentation

Will be available in the future.

1.11.8

3 months ago

1.11.7

3 months ago

1.11.6

3 months ago

1.11.5

3 months ago

1.11.4

3 months ago

1.11.3

3 months ago

1.11.2

7 months ago

1.11.1

7 months ago

1.10.8

8 months ago

1.11.0

7 months ago

1.10.7

12 months ago

1.10.6

1 year ago

2.0.0-alpha.0

1 year ago

2.0.0-alpha.1

1 year ago

2.0.0

1 year ago

1.10.5

1 year ago

1.10.4

1 year ago

1.10.3

1 year ago

1.10.2

1 year ago

1.10.1

1 year ago

1.10.0

1 year ago

1.9.0

2 years ago

1.8.0

2 years ago

1.7.0

2 years ago

1.6.3

2 years ago

1.5.5

2 years ago

1.5.4

2 years ago

1.6.2

2 years ago

1.5.3

2 years ago

1.6.1

2 years ago

1.5.2

2 years ago

1.6.0

2 years ago

1.5.1

2 years ago

1.5.10

2 years ago

1.5.11

2 years ago

1.5.9

2 years ago

1.5.8

2 years ago

1.5.7

2 years ago

1.5.6

2 years ago

1.2.0

2 years ago

1.5.0

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

1.2.1

2 years ago

1.1.1

3 years ago

1.0.2

3 years ago

1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.0.1

3 years ago