@financial-times/community-event-teaser
Advanced tools
Weekly downloads
Readme
Storybook: https://jubilant-umbrella-dd461ca9.pages.github.io
EventTeaser
, EventTopicCardItem
, and EventPromo
eventpromoToEventTeaserProps
, and initTeaserTracking
initTeaserTracking
is using a reference of oTracking passed in the function. The package is tested and compatible with versions from 4.0.0
to 4.4.0
.npm install @financial-times/community-event-teaser
Example of how to use the <EventTeaser/>
import { h, render } from '@financial-times/x-engine';
import { EventTeaser } from "@financial-times/community-event-teaser";
const container = document.querySelector('.some-container-element');
render((
<EventTeaser
imgUrl={"https://ftweekend.live.ft.com/some-cool-image-png"}
title={"FTWeekend Festival"}
standfirst={"Some short description of the event"}
eventUrl={"https://ftweekend.live.ft.com"}
lazyLoadImage={"some__lazy-loading-classname"}
location={"Kenwood House Gardens & Online"}
scheduledStartTime={new Date("2021-09-04T12:00:00.000Z")}
showImage={true}
showBrand={true}
showStandfirst={true}
/>), container)
Example of how to use the EventTopicCardItem
import { h, render } from '@financial-times/x-engine';
import { EventTopicCardItem } from "@financial-times/community-event-teaser";
const container = document.querySelector('.some-container-element');
render((
<EventTopicCardItem
title={"FTWeekend Festival"}
eventUrl={"https://ftweekend.live.ft.com"}
location={"Kenwood House Gardens & Online"}
scheduledStartTime={new Date("2021-09-04T12:00:00.000Z")}
/>), container)
npm install
FAQs
community event teasers etc
The npm package @financial-times/community-event-teaser receives a total of 652 weekly downloads. As such, @financial-times/community-event-teaser popularity was classified as not popular.
We found that @financial-times/community-event-teaser demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 12 open source maintainers collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.