orbit-components

[![Kiwi.com library](https://img.shields.io/badge/Kiwi.com-library-00A991?style=flat-square)](https://code.kiwi.com) [![CI Build](https://img.shields.io/github/actions/workflow/status/kiwicom/orbit/test.yml?branch=master&style=flat-square)](https://github.com/kiwicom/orbit/actions/workflows/test.yml) [![Orbit release](https://img.shields.io/github/package-json/v/kiwicom/orbit?filename=packages%2Forbit-components%2Fpackage.json&style=flat-square)](https://github.com/kiwicom/orbit/blob/master/packages/orbit-components/package.json#L3) [![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg?style=flat-square)](https://lerna.js.org/) [![minified and gzipped size](https://img.shields.io/bundlephobia/minzip/@kiwicom/orbit-components@latest?style=flat-square)](https://bundlephobia.com/package/@kiwicom/orbit-components) [![Maintenance](https://img.shields.io/npms-io/maintenance-score/@kiwicom/orbit-components?style=flat-square)](https://github.com/kiwicom/orbit) [![Downloads](https://img.shields.io/npm/dm/@kiwicom/orbit-components?style=flat-square)](https://www.npmjs.com/package/@kiwicom/orbit-components) Orbit-components is a React component library that provides developers with the easiest possible way of building Kiwi.com’s products.
--- ## Orbit Mission Orbit aims to bring order and consistency to all of our products and processes. We elevate user experience and increase the speed and efficiency of how we design and build products. ## Installation `orbit-components` is served as an [npm package](https://www.npmjs.com/package/@kiwicom/orbit-components). Add them to your project by running: ```bash // with npm npm install @kiwicom/orbit-components // with yarn yarn add @kiwicom/orbit-components ``` ## Usage 1. Import fonts that are used in orbit-components: ```html ``` Or via CSS: ```css @import url("https://fonts.googleapis.com/css?family=Roboto:400,400i,500,500i,700"); ``` 2. Include any of our components in your project and use it: ```jsx import Alert from "@kiwicom/orbit-components/lib/Alert"; Hello World!; ``` If you want to use custom theme inside your project, it's necessary to wrap your app into ``. See [this document](https://github.com/kiwicom/orbit/tree/master/packages/orbit-components/src/OrbitProvider/README.md) for more information. For live preview check out [Storybook](https://kiwicom.github.io/orbit/) or [orbit.kiwi](https://orbit.kiwi). You can also try `orbit-components` directly on our [Playroom](https://kiwicom.github.io/orbit/playroom). ## Documentation For full documentation, visit [orbit.kiwi](https://orbit.kiwi). ## Typescript Orbit comes with Typescript definitions files. ## Tailwind CSS Orbit uses Tailwind CSS for styling. Tailwind must be installed in your project to see Orbit components styled correctly. The `@kiwicom/orbit-tailwind-preset` package provides the Tailwind CSS configuration used in Orbit. Check the Orbit official documentation for more information on how to set up Tailwind CSS in your project. ## Main Sections - [Components](https://github.com/kiwicom/orbit/tree/master/packages/orbit-components/src/) - [Icons](https://github.com/kiwicom/orbit/tree/master/packages/orbit-components/src/Icon/README.md) - [Right to left languages](https://github.com/kiwicom/orbit/tree/master/packages/orbit-components/src/utils/rtl/README.md) - [Theming](https://github.com/kiwicom/orbit/blob/master/.github/theming.md) ## Contributing We are working on making this project a fully open source. We appreciate any contributions you might make. [Bug reports](https://github.com/kiwicom/orbit/issues/new?template=bug_report.md) and [feature requests](https://github.com/kiwicom/orbit/issues/new?template=feature_request.md) are welcome but, please use the correct template. Please check out our [Contribution Guide](https://github.com/kiwicom/orbit/tree/master/.github/CONTRIBUTING.md). It includes contribution guidelines and information on how to run and develop the project. ## Feedback We want to provide only components of the highest quality. We can’t do that without your feedback. If you have any suggestions about what we can do to improve components, please report it directly as an [issue](https://github.com/kiwicom/orbit/issues/new/choose).