A set of UI components built with Emotion and styled-system, to be used between Charlie Tango projects.
It's built for Emotion 11 (still in beta, but should be finalized soon), so it can be used with
the @emotion/react package.
yarn add @charlietango/ui @emotion/reactYou should add
@charlietango/babel-preset-sx-prop
to enable full support for the sx prop. This is a custom version of
@emotion/babel-preset-css-prop, and
replaces it (still includes support for the css prop).
yarn add @charletango/babel-preset-sx-prop --devAdd the preset to the project .babelrc
{
"presets": ["@charlietango/babel-preset-sx-prop"]
}| Component | Status |
|---|---|
| Accordion | Todo |
| Tabs | Todo |
| Modal | ✅ |
| VisuallyHidden | ✅ |
All the components should be documented using Storybook. We are using the Storybook MDX format to ensure we have examples alongside the documentation.
You can use yarn link to test changes to the library
in another one of your projects.
In the charlie-tango/ui project run:
yarn link
yarn dev:watchIn the consuming test project, link the project:
yarn link "@charlietango/ui"You will now be able to see changes immediately.
We are using semantic-release to
automatically publish a new package, whenever we merge to master. It's important to use the
Angular Commit Message Conventions
so the version can be correctly bumped.