dusty / chakra-ui

⚡️Simple, Modular & Accessible UI Components for your React Applications

Home Page:https://chakra-ui.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


chakra-ui symbol

Build Accessible React Apps with Speed ⚡️


All Contributors Bundle Size MIT License NPM Downloads Spectrum Spectrum Spectrum


Chakra UI provides a set of accessible, reusable and composable React components that make it super easy to create websites and apps.

Looking for the documentation?

Here over here => https://chakra-ui.com

Features

  • Ease of Styling: Chakra UI contains a set of layout components like Box and Stack that make it easy to style your components by passing props. Learn more
  • 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 and have the right aria-* attributes.
  • Dark Mode 😍: Most components in Chakra UI are dark mode compatible.

Support Chakra UI 💖

By donating $5 or more you can support the ongoing development of this project. We'll appreciate some support. Thank you to all our supporters! 🙏 [Contribute]

Individuals

Organizations

Support this project with your organization. Your logo will show up here with a link to your website. [Contribute]

Testimonials

People throw React component libraries and design systems at me regularly. This might be the best one I've seen. The APIs are simple but composable and the accessibility on the couple components I looked is complete.

Great work @thesegunadebayo, really inspiring work. – Ryan Florence

Awesome new open-source component library from @thesegunadebayo. Really impressive stuff! – Colm Tuite

This is incredible work. Amazing job Segun! – Lee Robinson

Chakra UI is glorious! I love the consistent use of focus styling and the subtle animation – Guillermo ▲

Installing Chakra UI

To use Chakra UI components, all you need to do is install the @chakra-ui/core package and its peer dependencies:

$ yarn add @chakra-ui/core @emotion/core @emotion/styled emotion-theming

# or

$ npm install @chakra-ui/core @emotion/core @emotion/styled emotion-theming

Usage

To start using the components, please follow these steps:

  1. Wrap your application with the ThemeProvider provided by @chakra-ui/core. We recommend that you also add the CSSReset component to remove all browser styling.
import { ThemeProvider, CSSReset } from "@chakra-ui/core".

// Do this at the root of your application
const App = ({ children }) => (
  <ThemeProvider>
    <CSSReset />
    {children}
  </ThemeProvider>
);

Optionally, you can wrap your application with the ColorModeProvider so you can toggle between light and dark mode within your app.

  1. Now you can start using components like so!:
import { Button } from "@chakra-ui/core";

<Button>I just consumed some ⚡️Chakra!</Button>;

CodeSandbox

Contributors

This project exists thanks to all the people who contribute. [Contribute].

About

⚡️Simple, Modular & Accessible UI Components for your React Applications

https://chakra-ui.com

License:MIT License


Languages

Language:JavaScript 100.0%