Chakra UI

Simple, Modular & Accessible UI Components for your React Applications
GitHub
37.7k
Created 5 years ago, last commit 2 hours ago
632 contributors
10k commits
Stars added on GitHub, month by month
10
11
12
1
2
3
4
5
6
7
8
9
2023
2024
Stars added on GitHub, per day, on average
Yesterday
+10
Last week
+5.4
/day
Last month
+5.6
/day
Last 12 months
+8.2
/day
Package on NPM
Monthly downloads on NPM
10
11
12
1
2
3
4
5
6
7
8
9
2023
2024
README

Chakra logo

Build Accessible React Apps with Speed โšก๏ธ


Bundle Size Github Checks MIT License NPM Downloads Github Stars Discord


Chakra UI is a comprehensive library of accessible, reusable, and composable React components that streamlines the development of modern web applications and websites. The library offers a diverse range of components that can be easily combined to build complex user interfaces while adhering to accessibility best practices.

Table of contents

Documentation

It's the https://chakra-ui.com website for the latest version of Chakra UI. For older versions head over here

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 follow the WAI-ARIA guidelines specifications and have the right aria-* attributes.
  • Dark Mode ๐Ÿ˜: Most components in Chakra UI are dark mode compatible.

Installation

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

# with Yarn
$ yarn add @chakra-ui/react @emotion/react

# with npm
$ npm i @chakra-ui/react @emotion/react

# with pnpm
$ pnpm add @chakra-ui/react @emotion/react

# with Bun
$ bun add @chakra-ui/react @emotion/react

Usage

To start using the components, please follow these steps:

  1. Wrap your application with the ChakraProvider provided by @chakra-ui/react.
import { ChakraProvider, defaultSystem } from "@chakra-ui/react"

// Do this at the root of your application
function App({ children }) {
  return <ChakraProvider value={defaultSystem}>{children}</ChakraProvider>
}

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/react"

function Example() {
  return <Button>I just consumed some โšก๏ธChakra!</Button>
}

More guides on how to get started are available here

CodeSandbox Templates

create-react-app Templates

Check out our guide for information on how to use our official create-react-app templates.

Contributing

Feel like contributing? That's awesome! We have a contributing guide to help guide you.

Our docsite lives in a separate repo. If you're interested in contributing to the documentation, check out the docsite contribution guide.

Support Chakra UI

Organizations

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

Individuals

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]

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 โ–ฒ

Awards and Mentions

We've been extremely humbled to receive awards and mentions from the community for all the innovation and reach Chakra UI brings to the JavaScript ecosystem.

Technology Radar

Solution Worth Pursuing

Technology Radar (2020โ€“2021)

Open Source Awards 2020

The Most Impactful Contribution to the community

Open Source Awards (2020)

Contributors

Thanks goes to these wonderful people

Segun Adebayo
Segun Adebayo

๐Ÿ’ป ๐Ÿšง ๐Ÿ“– ๐Ÿ’ก ๐ŸŽจ
Tioluwani Kolawole
Tioluwani Kolawole

๐Ÿ“– ๐Ÿ’ก ๐Ÿšง
Devansh Jethmalani
Devansh Jethmalani

๐Ÿ’ป
Adrian Aleixandre
Adrian Aleixandre

๐Ÿ’ป ๐Ÿ“–
Lee
Lee

๐Ÿ“–
Kristรณf Poduszlรณ
Kristรณf Poduszlรณ

๐Ÿ’ป ๐Ÿค” ๐Ÿ› ๐Ÿ“–
Justin Hall
Justin Hall

๐Ÿ’ป
Mark Chandler
Mark Chandler

๐Ÿ’ป โš ๏ธ ๐Ÿ“– ๐Ÿšง
Folasade Agbaje
Folasade Agbaje

๐Ÿ’ป ๐Ÿค”
Christian Nwamba
Christian Nwamba

๐Ÿ“–
Jonathan Bakebwa
Jonathan Bakebwa

๐Ÿ“– ๐Ÿค”
Alex Luong
Alex Luong

๐Ÿ’ป ๐Ÿ”Œ
Jesco Wรผster
Jesco Wรผster

๐Ÿ’ป
Dusty Doris
Dusty Doris

๐Ÿ’ป
Alex Lobera
Alex Lobera

๐Ÿ’ป
Tommaso De Rossi
Tommaso De Rossi

๐Ÿ’ป
Odi
Odi

๐Ÿ’ป
Hendrik Niemann
Hendrik Niemann

๐Ÿ’ป
Matt Rothenberg
Matt Rothenberg

๐Ÿ’ป ๐Ÿ’ก
Luis Felipe Zaguini
Luis Felipe Zaguini

๐Ÿ’ป
Jean
Jean

๐Ÿ’ป
Temitope Ajiboye
Temitope Ajiboye

๐Ÿ“–
Jonathan Kim
Jonathan Kim

๐Ÿ’ป
Chris Thompson
Chris Thompson

๐Ÿ’ป
WALTER KIMARO
WALTER KIMARO

๐Ÿ’ป
Jack Leslie
Jack Leslie

๐Ÿ’ป
Ken-Lauren Daganio
Ken-Lauren Daganio

๐Ÿ’ป
Ramon
Ramon

๐Ÿ’ป
jess
jess

๐Ÿ“– ๐Ÿ”
Ayelegun Kayode Michael
Ayelegun Kayode Michael

๐Ÿ’ป
Tal Williams
Tal Williams

๐Ÿ’ป
Trevor Blades
Trevor Blades

๐Ÿ’ป ๐Ÿ“– ๐Ÿ›
Gord Lea
Gord Lea

๐Ÿ’ป
Aggelos Arvanitakis
Aggelos Arvanitakis

๐Ÿ’ป
Douglas Gabriel
Douglas Gabriel

๐Ÿ’ป
Martin Nordstrรถm
Martin Nordstrรถm

๐Ÿ’ป
Danny Tatom
Danny Tatom

๐Ÿ’ป
Simon Collins
Simon Collins

๐Ÿ’ป
Santi Albo
Santi Albo

๐Ÿ’ป ๐Ÿ“–
PILO7980
PILO7980

๐Ÿ’ป
Ishimoto Koji
Ishimoto Koji

๐Ÿ’ป
Jeff Wen
Jeff Wen

๐Ÿ’ป
Pablo Saez
Pablo Saez

๐Ÿ’ป
Nejc Ravnik
Nejc Ravnik

๐Ÿ’ป
Julien Viala
Julien Viala

๐Ÿ’ป
Sebastian Trebunak
Sebastian Trebunak

๐Ÿ’ป ๐Ÿ“–
Adam Plante
Adam Plante

๐Ÿ’ป
Lรบcio Rubens
Lรบcio Rubens

๐Ÿ’ป
Jason Miazga
Jason Miazga

๐Ÿ’ป ๐Ÿ“–
Gonzalo Pozzo
Gonzalo Pozzo

๐Ÿ’ป
Christian
Christian

๐Ÿ’ป ๐Ÿš‡
Christian Hagendorn
Christian Hagendorn

๐Ÿ’ป
Andrey Krasnov
Andrey Krasnov

๐Ÿ’ป
Dony Sukardi
Dony Sukardi

๐Ÿ’ป
Meng
Meng

๐Ÿ’ป
Gabriele Belluardo
Gabriele Belluardo

๐Ÿ’ป
Francois Best
Francois Best

๐Ÿ’ป
Tianci He
Tianci He

๐Ÿ’ป
Steven
Steven

๐Ÿ’ป
Baptiste Adrien
Baptiste Adrien

๐Ÿ’ป
Rob Bevan
Rob Bevan

๐Ÿ’ป
Tomasz
Tomasz

๐Ÿ’ป
ๅพๆ„ท
ๅพๆ„ท

๐Ÿ’ป
David Wippel
David Wippel

๐Ÿ’ป
Naveen
Naveen

๐Ÿ’ป
Vincent
Vincent

๐Ÿ’ป
Osamah Aldoaiss
Osamah Aldoaiss

๐Ÿ’ป
Fred K. Schott
Fred K. Schott

๐Ÿ’ป
Jared Palmer
Jared Palmer

๐Ÿ’ป
Austin Walela
Austin Walela

๐Ÿ’ป
Tony Narlock
Tony Narlock

๐Ÿ’ป ๐Ÿ“–
Thomas Maximini
Thomas Maximini

๐Ÿ’ป
David Baumgold
David Baumgold

๐Ÿ’ป
ralphilius
ralphilius

๐Ÿ’ป
Rahul Rangnekar
Rahul Rangnekar

๐Ÿ’ป
Pierre Nel
Pierre Nel

๐Ÿ’ป
Pierre Grimaud
Pierre Grimaud

๐Ÿ’ป
Whisp R&D
Whisp R&D

๐Ÿ’ป
Makenna Smutz
Makenna Smutz

๐Ÿ’ป ๐Ÿ“– ๐Ÿค”
Nelson Reitz
Nelson Reitz

๐Ÿ’ป
Mohamed Nainar
Mohamed Nainar

๐Ÿ“–
Mustafa Turhan
Mustafa Turhan

๐Ÿ“–
Kim Rรธen
Kim Rรธen

๐Ÿ“–
Justin Mak
Justin Mak

๐Ÿ’ป
Jeremy Davis
Jeremy Davis

๐Ÿ’ป
Jeremy Lu
Jeremy Lu

๐Ÿ“– ๐Ÿ’ป
Ivan Dalmet
Ivan Dalmet

๐Ÿ“– ๐Ÿ’ป ๐Ÿ”Œ
Dillon Curry
Dillon Curry

๐Ÿ’ป
idfunctor
idfunctor

๐Ÿ’ป
denkigai
denkigai

๐Ÿ’ป
Aaron Adams
Aaron Adams

๐Ÿ’ป
Abdulazeez Adeshina
Abdulazeez Adeshina

๐Ÿ’ป
Sandro
Sandro

๐Ÿ’ป
Premkumar Shanmugam
Premkumar Shanmugam

๐Ÿ’ป
Tobias Meixner
Tobias Meixner

๐Ÿ’ป
Jeremie Leblanc
Jeremie Leblanc

๐Ÿ’ป
Kelvin Oghenerhoro
Kelvin Oghenerhoro

๐Ÿ’ป
David J. Felix
David J. Felix

๐Ÿ’ป
Brody McKee
Brody McKee

๐Ÿ“–
Per Svensson
Per Svensson

๐Ÿ’ป
Patrick Cason
Patrick Cason

๐Ÿ“–
Ivo Iliฤ‡
Ivo Iliฤ‡

๐Ÿ’ป
Avaneesh Tripathi
Avaneesh Tripathi

๐Ÿ’ป
balibebas
balibebas

๐Ÿ“–
Navin Moorthy
Navin Moorthy

๐Ÿ’ป ๐Ÿ“–
Tim Kindberg
Tim Kindberg

๐Ÿ“–
iodar
iodar

๐Ÿ“–
MAO YUFENG
MAO YUFENG

๐Ÿ“–
Peng Jie
Peng Jie

๐Ÿ’ป ๐Ÿ“–
James Gee
James Gee

๐Ÿ’ป โš ๏ธ ๐Ÿ’ก
Anton
Anton

๐Ÿ“–
Damnjan Lukovic
Damnjan Lukovic

๐Ÿ“–
Stanila Andrei
Stanila Andrei

๐Ÿ’ป
Ekunola Ezekiel
Ekunola Ezekiel

๐Ÿ’ป
Ben Mitchinson
Ben Mitchinson

๐Ÿ“–
Jess Telford
Jess Telford

๐Ÿ’ป
Simo Aleksandrov
Simo Aleksandrov

๐Ÿ“–
Hรฉricles Emanuel
Hรฉricles Emanuel

๐Ÿ’ป
CodinCat
CodinCat

๐Ÿ“–
Sam Dawson
Sam Dawson

๐Ÿค”
hy2k
hy2k

๐Ÿ’ป
Pierre Ortega
Pierre Ortega

๐Ÿ’ป
Kerem Sevencan
Kerem Sevencan

๐Ÿ“–
harveyhalwin
harveyhalwin

๐Ÿ“–
Mansour benyoucef
Mansour benyoucef

๐Ÿ“–
Andrew Garrison
Andrew Garrison

๐Ÿ“–
Carlos Rodrigues
Carlos Rodrigues

๐Ÿ“–
Dwight Watson
Dwight Watson

๐Ÿ“–
ChasinHues
ChasinHues

๐Ÿ“–
Nahuel Greco
Nahuel Greco

๐Ÿ“† ๐Ÿ›
Pablo Rocha
Pablo Rocha

๐Ÿ“–
Dustin Larimer
Dustin Larimer

๐Ÿ’ป ๐ŸŽจ
Juliano Farias
Juliano Farias

๐Ÿ“–
Joe Bell
Joe Bell

๐Ÿ› ๐Ÿ’ป
Henning Pohlmeyer
Henning Pohlmeyer

๐Ÿ’ป
Sivert Schou Olsen
Sivert Schou Olsen

๐Ÿ“–
Andrei Lazarescu
Andrei Lazarescu

๐Ÿ“–
Josรฉ Teixeira
Josรฉ Teixeira

๐Ÿ›
Adriano Resende
Adriano Resende

๐Ÿ“–
Victor Bastos
Victor Bastos

๐Ÿ“–
Vincent
Vincent

๐Ÿ“–
Candice
Candice

๐ŸŽจ ๐Ÿ› ๐Ÿ“–
Dave Bauman
Dave Bauman

๐Ÿ“–
TimKolberger
TimKolberger

๐Ÿ› ๐Ÿ“– ๐Ÿ’ป
Stephane Mensah
Stephane Mensah

๐Ÿ›
iskanderbroere
iskanderbroere

๐Ÿ“–
Dominik Sumer
Dominik Sumer

๐Ÿ’ป
Pavel 'Strajk' Dolecek
Pavel 'Strajk' Dolecek

๐Ÿ“–
Keshav Bohra
Keshav Bohra

๐Ÿ“–
okezieuc
okezieuc

๐Ÿ“–
Clayton Faria
Clayton Faria

๐Ÿ“–
Andrew Ellis
Andrew Ellis

๐Ÿ’ป ๐Ÿ› ๐Ÿ“–
Joel Gallant
Joel Gallant

๐Ÿ›
Jaya Krishna Namburu
Jaya Krishna Namburu

๐Ÿ’ป
Ifeoma Imoh
Ifeoma Imoh

๐Ÿ“–
Jason Adkison
Jason Adkison

๐Ÿ›
Gauthier Rodaro
Gauthier Rodaro

๐Ÿ›
Tom Dohnal
Tom Dohnal

๐Ÿ’ป
Sam Margalit
Sam Margalit

๐Ÿ›
Marcus Wood
Marcus Wood

๐Ÿ’ป
Spencer Duball
Spencer Duball

๐Ÿ“–
Jacob Arriola
Jacob Arriola

๐Ÿ“–
Kenley Jean
Kenley Jean

๐Ÿ“–
Dennis Morello
Dennis Morello

๐Ÿ›
Umar Gora
Umar Gora

๐Ÿ“–
Zyclotrop-j
Zyclotrop-j

๐Ÿ’ป
Hong Suk Woo
Hong Suk Woo

๐Ÿ“–
Junho Yeo
Junho Yeo

๐Ÿ“–
Thomas Siller
Thomas Siller

โš ๏ธ ๐Ÿ’ป
Samuel Kauffmann
Samuel Kauffmann

๐Ÿ“–
Jozef Mikulรกลก
Jozef Mikulรกลก

๐Ÿ’ป
Joรฃo Victor
Joรฃo Victor

๐Ÿ’ป
yuichiro miyamae
yuichiro miyamae

๐Ÿ“–
Gifa Eriyanto
Gifa Eriyanto

๐Ÿ›
Yuzi
Yuzi

โš ๏ธ ๐Ÿ’ป
songheewon
songheewon

๐Ÿ“–
Prasanna Venkatesh T S
Prasanna Venkatesh T S

๐Ÿ“–
anthowm
anthowm

๐Ÿ“–
Osama Ahmaro
Osama Ahmaro

๐Ÿ›
Danan Wijaya
Danan Wijaya

๐Ÿ“–
electather
electather

๐Ÿ›
Shubham Kaushal
Shubham Kaushal

๐Ÿ“–
Petter Sรฆther Moen
Petter Sรฆther Moen

๐Ÿ“–
Herman Nygaard
Herman Nygaard

๐Ÿ“–
jnmsl
jnmsl

๐Ÿ“–
Mohamed Sayed
Mohamed Sayed

๐Ÿ’ป
Sam Poder
Sam Poder

๐Ÿ“–
Dominic Lee
Dominic Lee

๐Ÿ“– ๐Ÿ’ป
Feras Aloudah
Feras Aloudah

๐Ÿค”
JP Ungaretti
JP Ungaretti

๐Ÿ“–
Endika Intxaurtieta
Endika Intxaurtieta

๐Ÿ“–
Matt Wells
Matt Wells

๐Ÿ’ป
Anant Jain
Anant Jain

๐Ÿ“–
Tom Chen
Tom Chen

๐Ÿ“– ๐Ÿš‡
Ernie Miranda
Ernie Miranda

๐Ÿ“–
bjoluc
bjoluc

๐Ÿ“–
Sujit Pradhan
Sujit Pradhan

๐Ÿ“– ๐Ÿ’ป
Abhishek Kashyap
Abhishek Kashyap

๐Ÿ“–
Kristian Djakoviฤ‡
Kristian Djakoviฤ‡

๐Ÿ’ป
Antoniel Magalhรฃes
Antoniel Magalhรฃes

๐Ÿ’ป
Griko Nibras
Griko Nibras

๐Ÿค” ๐Ÿ’ป
imalbert
imalbert

๐Ÿ“–
mcha
mcha

๐Ÿ’ป โš ๏ธ
Hasib Hassan
Hasib Hassan

๐Ÿ“–
Jamie Rolfs
Jamie Rolfs

๐Ÿค” ๐Ÿ“– ๐Ÿ’ป
Surabhi Gupta
Surabhi Gupta

๐Ÿ“–
Ningaro
Ningaro

๐Ÿ›
Monae
Monae

๐Ÿ’ป
Wade McDaniel
Wade McDaniel

๐Ÿ“–
Gordon Goldbach
Gordon Goldbach

๐Ÿ’ป
Bhish
Bhish

๐Ÿ’ป
Amilkar Munoz
Amilkar Munoz

๐Ÿ“–
Samar Mohan
Samar Mohan

๐Ÿ’ป
Joรฃo Paulo Rodrigues
Joรฃo Paulo Rodrigues

๐Ÿ“–
Avery Freeman
Avery Freeman

๐Ÿ“–
Daniel Schulz
Daniel Schulz

๐Ÿ› ๐Ÿ’ป ๐Ÿ“– ๐Ÿค”
Michael Kilbane
Michael Kilbane

๐Ÿ’ป
ngxCoder
ngxCoder

๐Ÿ’ป
Kristofer Giltvedt Selbekk
Kristofer Giltvedt Selbekk

๐Ÿ“–
Johann Ehlers
Johann Ehlers

๐Ÿ“– ๐Ÿ’ป
Lukas Bach
Lukas Bach

๐Ÿ’ป
Lazar Nikolov
Lazar Nikolov

๐Ÿ›
iwata
iwata

๐Ÿ› ๐Ÿ’ป
Lee seung chan
Lee seung chan

๐Ÿ’ป
pomSense
pomSense

๐Ÿ’ป
be-student
be-student

๐Ÿ“–
Tatsuya Itakura
Tatsuya Itakura

๐Ÿ’ป ๐Ÿšง
Yuku Kotani
Yuku Kotani

๐Ÿ’ป ๐Ÿšง
Vadim Demedes
Vadim Demedes

๐Ÿ’ป

(emoji key):

This project follows the all-contributors specification. Contributions of any kind welcome!

Testing supported by

BrowserStack

License

MIT ยฉ Segun Adebayo