How to use the @financial-times/x-teaser.presets.TopStoryLandscape function in @financial-times/x-teaser

To help you get started, weā€™ve selected a few @financial-times/x-teaser examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Financial-Times / x-dash / private / ssr-benchmark / mocks / list.js View on Github external
title: 'Removing the fig leaf of charity'
			},
			{
				id: '',
				url: '#',
				type: 'article',
				title: 'A dinner that demeaned both women and men'
			},
			{
				id: '',
				url: '#',
				type: 'video',
				title: 'PM speaks out after Presidents Club dinner'
			}
		],
		...presets.TopStoryLandscape
	},
	{
		type: 'video',
		// The ID is required for the in-situ video demo to work
		id: '0e89d872-5711-457b-80b1-4ca0d8afea46',
		url: '#',
		title: 'FT View: Donald Trump, man of steel',
		standfirst: "The FT's Rob Armstrong looks at why Donald Trump is pushing trade tariffs",
		publishedDate: '2018-03-26T08:12:28.137Z',
		firstPublishedDate: '2018-03-26T08:12:28.137Z',
		conceptPrefix: '',
		conceptSuffix: '02:51min',
		concept: {
			url: '#',
			prefLabel: 'Global Trade'
		},

@financial-times/x-teaser

This module provides templates for use with o-teaser. Teasers are used to present content.

ISC
Latest version published 6 days ago

Package Health Score

76 / 100
Full package analysis