Socket
Socket
Sign inDemoInstall

@knotel/transportation

Package Overview
Dependencies
148
Maintainers
28
Versions
70
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @knotel/transportation

Reusable Component in Knotel's Design System


Version published
Maintainers
28
Install size
195 MB
Created

Readme

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

Last updated on 20 Nov 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc