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

@financial-times/community-event-teaser

Package Overview
Dependencies
Maintainers
11
Versions
215
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@financial-times/community-event-teaser

community event teasers etc

  • 11.2.5-alpha.1984.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
532
increased by20.36%
Maintainers
11
Weekly downloads
 
Created
Source

Community-event-teaser

Storybook: https://jubilant-umbrella-dd461ca9.pages.github.io

Description

  • This is a package which contains the UI component for an event.
  • The community-event-teaser provides those elements for rendering EventTeaser, EventTopicCardItem, and EventPromo
  • The community-event-teaser also provides export of two util functions: liveEventToEventTeaserProps, and initTeaserTracking

Note

  • The 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.

Installation

npm install @financial-times/community-event-teaser

Usage

  • 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)
    

Development

Setting up your local environment

  • Simply clone this repo, cd into the directory and run:
npm install

FAQs

Package last updated on 01 Sep 2023

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