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

@canonical/maas-react-components

Package Overview
Dependencies
Maintainers
13
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@canonical/maas-react-components

React components for use in MAAS UI projects.

  • 1.28.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
13
Created
Source

MAAS React Components


Canonical MAAS

Library of React components for use in MAAS UI projects.

It contains components that are either specific to, or only used in MAAS.
General purpose components should be added to @canonical/react-components instead.

Storybook | Philosophy and guidelines


Getting started

Installation

npm install @canonical/maas-react-components

or using yarn:

yarn add @canonical/maas-react-components

Add styles import to your app:

@import "@canonical/maas-react-components/dist/style.css";

Development with maas-react-components

To see the changes you make to maas-react-components reflected in a consuming app immediately, follow these steps:

  1. In the maas-react-components directory, run the following command to create a symlink:

    yarn link
    
  2. In the consuming repository (e.g., maas-ui), run the following command to use the local version of maas-react-components:

    yarn link "@canonical/maas-react-components"
    
  3. Go back to maas-react-components directory and run the following command to start the build process with the watch flag:

    npm run build:watch
    
  4. As you make changes to maas-react-components they will be automatically built and reflected in the consuming app.

Creating a new component

Make sure to read our React Components Guidelines before you proceed.

Run the following command from the root of the project:

npm run create-component

The script will prompt you to enter details of the new component.

It will create a new directory and files based on the details you provided. New files will contain a basic setup for your new component, including a basic test and a storybook story.

FAQs

Package last updated on 25 Apr 2024

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