Socket
Socket
Sign inDemoInstall

@mapbox/assembly-components

Package Overview
Dependencies
Maintainers
155
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mapbox/assembly-components

A React component library


Version published
Weekly downloads
1
Maintainers
155
Weekly downloads
 
Created
Source

assembly-components

Build Status

A React component library for building Mapbox things.

This library is new and experimental. Please try it out and file issues. Once we are a little more confident in the approach, we will start a changelog. Until then, pay attention and be careful when you update.

Installation

Install the npm package @mapbox/assembly-components.

Documentation

Please look at the generated files in docs/.

Usage

The contents of src/ are compiled with Babel but not bundled. You should import/require each file you want to use individually, using your own JS build system to bundle in your own way.

import React from 'react';
import { Icon } from '@mapbox/assembly-components/icon';
// OR var Icon = require('@mapbox/assembly-components/icon').Icon;

class MyComponent extends React.Component {
  render() {
    return (
      <div>
        <Icon name='check' />
      </div>
    );    
  }
}

Development

yarn install

Run the test cases app:

yarn start

Publishing

assembly-components publishes the dist directory, which is not committed to the repo.

dist/package.json is generated by picking properties from ./package.json. So before publishing, you need to ensure you have updated the version number (and any other relevant info) in ./package.json.

# Build components into `dist`
yarn build

# Enter the `dist` directory
cd dist

# From the `dist` directory, publish
yarn publish

FAQs

Package last updated on 01 Jul 2017

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