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

@knotel/transportation

Package Overview
Dependencies
Maintainers
22
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@knotel/transportation

Reusable Component in Knotel's Design System

  • 0.36.1
  • npm
  • Socket score

Version published
Weekly downloads
16
decreased by-42.86%
Maintainers
22
Weekly downloads
 
Created
Source

Cinderblock Transportation Card

Reusable Component in Knotel's Design System

Import
Required external dependencies
Usage
Properties

Import

  import TransitCard from '@knotel/transportation'

Required external dependencies

@knotel/cinderblock
prop-types
react-dom
react-map-gl
react
styled-components

Usage

<TransitCard
  mapboxToken="XXXX"
  clientID="XXXX"
  clientSecret="XXXX"
  lat={51.516}
  lng={-0.133}
  zoom={{ desktop: 10, mobile: 15 }}
/>

Properties

PropTypeDefaultNote
mapboxTokenstring!Mapbox API access token for MapboxGL.
clientIDstring!Client id for Foursquare API.
clientSecretstring!Client secret for Foursquare API.
zoomnumber or object15Initial the zoom level of the map on desktop version. If passed a number, it's set as initial value on desktop and mobile version. If passed a object, you can set the zoom level as on mobile version as on desktop version separately. For example { desktop: 15, mobile: 15 }
latnumber!The latitude of the center of the map.
lngnumber!The longitude of the center of the map.

Storybook

Triggering a (nohup) Build (by changing the next line):

2

FAQs

Package last updated on 17 Oct 2019

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