Aksara UI introduced a lot of changes compared to the previous version from the previous releases (0.x). To provide a smooth transition process, this documentation is created.
If anything is missing from this document, please file an issue.
The package has been named from @wicara/core
to @aksara-ui/react
.
To install it, run the following command:
# yarn
yarn add @aksara-ui/react
# npm
npm install --save @aksara-ui/react
Here's an example of replacing the old imports with the new one.
- import { Button, InputText } from '@wicara/core';
+ import { Button, InputText } from '@aksara-ui/react';
- import { Button, InputText } from '@aksara-ui/core';
+ import { Button, InputText } from '@aksara-ui/react';
Aksara UI will no longer provide a fonts package. If you would like to install the brand fonts for Aksara UI, please install them separately.
# yarn
$ yarn add typeface-inter
# npm
$ npm install --save typeface-inter
Deprecated components/utilities have been removed in this release. Here are a list of deprecated components/utilities, as well as its replacements, if available:
WicaraProvider
->AksaraProvider
NonIdealState
->Blankslate
Banner
->Message
- All legacy theme tokens (colours, spacing, etc.)