chakra-ui
Version:
Responsive and accessible React UI components built with React and Emotion
44 lines (31 loc) • 1.54 kB
Markdown
<!-- [![Travis][build-badge]][build]
[![npm package][npm-badge]][npm]
[![Coveralls][coveralls-badge]][coveralls] -->
out of the box. Chakra UI contains a set of polished React components that work out of the box.
- Flexible & composable. Chakra UI components are built on top of a React UI Primitive for endless composability.
- Accessible. Chakra UI components follows the WAI-ARIA guidelines specifications.
- Dark Mode 😍: All components work in dark mode compatible.
⚡️Chakra UI is made up of multiple components and tools which you can import one by one. All you need to do is install the `chakra-ui` package:
```sh
$ yarn add chakra-ui
$ npm install --save chakra-ui
```
A working version, assuming you are using something like [Create React App](https://github.com/facebookincubator/create-react-app), might look like this:
```js
import React from "react";
import ReactDOM from "react-dom";
import { Button } from "chakra-ui";
ReactDOM.render(
<Button>I just consumed some ⚡️Chakra!</Button>,
document.getElementById("root")
);
```
<!-- [build-badge]: https://img.shields.io/travis/user/repo/master.png?style=flat-square
[ ]: https://travis-ci.org/user/repo
[ ]: https://img.shields.io/npm/v/npm-package.png?style=flat-square
[ ]: https://www.npmjs.org/package/npm-package
[ ]: https://img.shields.io/coveralls/user/repo/master.png?style=flat-square
[ ]: https://coveralls.io/github/user/repo -->
- Works