Design System component library
$ npm install --save @commercetools-frontend/ui-kit
$ yarn add @commercetools-frontend/ui-kit
The package main exports contains all the UI components.
import {
Text,
TextInput,
PrimaryButton,
// etc.
} from '@commercetools-frontend/ui-kit';
Previously the library was consumed by reaching into the folders structure like
import PrimaryButton from '@commercetools-frontend/ui-kit/buttons/primary-button';
In order to keep those imports backwards compatible, we provide the same old file structure in the proxy-exports
folder, which then gets copied into dist
at build time. Each folder only contains an index.js
that points to the main export of the generated bundle.
The
proxy-exports
folder will be removed in the future.
- Declarative components serving as a design guide
- Shared independently from the application's code base
- Used across different apps consumed by different teams
- Shared language between developers and designers
coming soon