npm.io
3.36.0 • Published 3 weeks ago

@chakra-ui/react

Licence
MIT
Version
3.36.0
Deps
7
Size
2.5 MB
Vulns
0
Weekly
0
Stars
40.5K

@chakra-ui/react

npm version npm downloads types license

Chakra UI is a component system for building products with speed. Accessible React components for building high-quality web apps and design systems. Works with Next.js RSC.

  • Works out of the box. A set of polished React components with sensible defaults.
  • Flexible & composable. Components are built on top of headless UI primitives (Ark UI) for endless composability.
  • Accessible. Components follow the WAI-ARIA guidelines and are tested against common accessibility issues.
  • Themeable. Customize every part of the components with design tokens, recipes, and semantic tokens. Dark mode included.

Documentation

https://chakra-ui.com

Installation

Install the @chakra-ui/react package and its peer dependency:

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

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

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

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

Getting started

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

export const App = ({ children }) => (
  <ChakraProvider value={defaultSystem}>{children}</ChakraProvider>
)
  1. Start using components:
import { Button } from "@chakra-ui/react"

const Demo = () => <Button>I just consumed some ⚡️Chakra!</Button>

For framework-specific setup (Next.js, Vite, etc.), see the installation guide.

Contributing

Feel like contributing? That's awesome! Read the contribution guide to get started.

License

MIT Segun Adebayo