Development

A guide on how to start working with Malty.

Importing component packages in your project with Yarn

Component packages are imported using their package name. The package name usually correlates to the component ID.

In your component workspace click on the Use dropdown, select the Install tab to copy your component scope name and component ID. You can then choose between NPM or Yarn to install your component into your project.

yarn add @carlsberg/malty.<component-type>.<component-name>

For example, that would translate to @carlsberg/malty.atoms.button

 

Use your Component

You can now use the component in your app by importing it from your node modules and then using it in your app or project, just like any other library!

For package details, please go to our “Components” section on the top menu, and find the component you need.