@assemble-inc/core
v0.7.14
Published
Assemble Component Library
Downloads
129
Keywords
Readme
Assemble UI
Welcome to Assemble UI!
We aim to create a hub for UI components that can be reusable throughout our Assemble projects.
Table of Contents
Importing and using the library
yarn add @assemble-inc/core
ornpm i @assemble-inc/core
- import a component with its named export i.e.
import { Button } from '@assemble-inc/core';
Assemble UI takes a BYOS ("bring your own styles") approach to styling the components. To make this possible, all components come equipped with at least one className prop you can use to style them.
Each component has a default class name formatted like asm-<component-name>
i.e. asm-button
View the list of available components here.
Getting Started
To add or update a component, you'll need to start development locally:
git clone https://github.com/assembleinc/asm-ui
cd /path/to/asm-ui
yarn
to install devDependenciesyarn build
to create builds of all packagescd storybook
&yarn start
to start storybook
Contributing
- Clone this repo
- Create a branch:
git checkout -b developer-name/component-name
- Make some changes
- Test your changes in Storybook
- Push your branch and open a Pull Request
- Let the team know in #asm-component-libraries
Publishing
Then every time you make an update to the library, republish it to npm:
- Run
yarn publish-packages
- At root of repo run
yarn changeset
and follow instructions - this will automatically bump major/minor versions of packages and prepare them to be published. Any packages with"private": true
in theirpackage.json
will not be published. - Run
yarn changeset publish
note: In order to publish, you will need to log into your NPM account first.
Maintainers
Assemble Frontend Team
License
This code is open source software licensed under the MIT License.