It's UI components set for Tarantool's interfaces. Strongly recommended to use in every UI module.
Install package into your project from npm:
npm i @tarantool.io/ui-kit
Add Inter font to your project. You can attach font from Google Fonts using link:
https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap
Optionally you can add Source Code Pro to display monotype texts (code, errors, etc.):
https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Source+Code+Pro:wght@400;500&display=swap
Import components and whatever from ui-kit in code:
import { Button } from '@tarantool.io/ui-kit';
...
return (
<Button intent="primary" text="Tarantool" />
);
You can customize components passing additional css classes to className
prop.
The style
property is not recommended to use.
Components list and usage recipes on https://tarantool.github.io/front-ui-kit/.
Use npm run build
to build or npm start
to run development server with your local styleguide.