
Security News
New React Server Components Vulnerabilities: DoS and Source Code Exposure
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.
@canonical/maas-react-components
Advanced tools
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.
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";
maas-react-componentsTo see the changes you make to maas-react-components reflected in a consuming app immediately, follow these steps:
In the maas-react-components directory, run the following command to create a symlink:
yarn link
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"
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
As you make changes to maas-react-components they will be automatically built and reflected in the consuming app.
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
React components for use in MAAS UI projects.
The npm package @canonical/maas-react-components receives a total of 457 weekly downloads. As such, @canonical/maas-react-components popularity was classified as not popular.
We found that @canonical/maas-react-components demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 23 open source maintainers collaborating on the project.
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.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.