Package Exports
- @chakra-ui/react
- @chakra-ui/react/accordion
- @chakra-ui/react/alert
- @chakra-ui/react/aspect-ratio
- @chakra-ui/react/avatar
- @chakra-ui/react/badge
- @chakra-ui/react/box
- @chakra-ui/react/breadcrumb
- @chakra-ui/react/button
- @chakra-ui/react/card
- @chakra-ui/react/center
- @chakra-ui/react/checkbox
- @chakra-ui/react/clickable
- @chakra-ui/react/close-button
- @chakra-ui/react/code
- @chakra-ui/react/color-mode
- @chakra-ui/react/container
- @chakra-ui/react/control-box
- @chakra-ui/react/css-reset
- @chakra-ui/react/descendant
- @chakra-ui/react/divider
- @chakra-ui/react/editable
- @chakra-ui/react/env
- @chakra-ui/react/extend-theme
- @chakra-ui/react/flex
- @chakra-ui/react/focus-lock
- @chakra-ui/react/form-control
- @chakra-ui/react/grid
- @chakra-ui/react/highlight
- @chakra-ui/react/icon
- @chakra-ui/react/image
- @chakra-ui/react/indicator
- @chakra-ui/react/input
- @chakra-ui/react/kbd
- @chakra-ui/react/link
- @chakra-ui/react/list
- @chakra-ui/react/live-region
- @chakra-ui/react/media-query
- @chakra-ui/react/menu
- @chakra-ui/react/modal
- @chakra-ui/react/number-input
- @chakra-ui/react/package.json
- @chakra-ui/react/pin-input
- @chakra-ui/react/popover
- @chakra-ui/react/popper
- @chakra-ui/react/portal
- @chakra-ui/react/progress
- @chakra-ui/react/provider
- @chakra-ui/react/radio
- @chakra-ui/react/select
- @chakra-ui/react/skeleton
- @chakra-ui/react/skip-nav
- @chakra-ui/react/slider
- @chakra-ui/react/spacer
- @chakra-ui/react/spinner
- @chakra-ui/react/stack
- @chakra-ui/react/stat
- @chakra-ui/react/stepper
- @chakra-ui/react/switch
- @chakra-ui/react/system
- @chakra-ui/react/table
- @chakra-ui/react/tabs
- @chakra-ui/react/tag
- @chakra-ui/react/textarea
- @chakra-ui/react/toast
- @chakra-ui/react/tooltip
- @chakra-ui/react/transition
- @chakra-ui/react/typography
- @chakra-ui/react/visually-hidden
- @chakra-ui/react/wrap
Readme
Welcome to Chakra UI ⚡️
Works 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 are dark mode compatible.
Looking for the documentation?
Installing Chakra UI
⚡️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/react
package:
$ yarn add @chakra-ui/react
# or
$ npm install --save @chakra-ui/react
Getting set up
To start using the components, please follow these steps:
- Wrap your application in a
ThemeProvider
provided by @chakra-ui/react
import { ThemeProvider, ColorModeProvider } from "@chakra-ui/react"
const App = ({ children }) => (
<ThemeProvider>
<ColorModeProvider>{children}</ColorModeProvider>
</ThemeProvider>
)
ColorModeProvider
is a context that provides light mode and dark mode values
to the components. It also comes with a function to toggle between light/dark
mode.
- Now you can start using components like so!:
import { Button } from "@chakra-ui/react"
const App = () => <Button>I just consumed some ⚡️Chakra!</Button>
Contributing
Feel like contributing? That's awesome! We have a contributing guide to help guide you.
The components to be built come from the Aria Practices Design Patterns and Widgets.
Contributors ✨
Thanks goes to these wonderful people (emoji key):
Segun Adebayo 💻 🚧 📖 💡 🎨 |
Tioluwani Kolawole 📖 💡 🚧 |
This project follows the all-contributors specification. Contributions of any kind welcome!