@financial-times/n-eventpromo v11.0.0
n-eventpromo
Eventpromo is used to promote content from live.ft.com.
Installation
This module is compatible with Node 6+ and is distributed on npm.
npm install --save @financial-times/n-eventpromo @financial-times/x-engine
This module also requires x-engine
as a peer dependency. The Engine module is used to inject your chosen runtime into the component. Please read the x-engine
documentation first if you are consuming x-
components for the first time in your application.
Usage
This module is used by n-magnet.
With react
import React from 'react';
import { Eventpromo } from '@financial-times/x-eventpromo';
// A == B == C
const a = Eventpromo(props);
const b = <Eventpromo {...props} />;
const c = React.createElement(Eventpromo, props);
All x-
components are designed to be compatible with a variety of runtimes, not just React.
Check out the x-engine
documentation for a list of recommended libraries and frameworks.
Properties
If not marked optional, fields require non-empty values.
Property | Type | Notes |
---|---|---|
isPaused | Boolean | Control animation state on load |
dates | String | Free text, can be either a specific date or a date range |
id | String | Eventpromo id, 32 chars |
images | String[] | 3 image urls, will be passed to origami image service |
link | String | Eventpromo url, should include segmentId |
location | String | No set format: "London", "New York", "ExCeL London", etc |
strapline | String | |
title | String |
12 days ago
3 months ago
6 months ago
6 months ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago