Skip to content
项目

关于

⚡️为 React 应用打造的简洁、模块化且易用的 UI 组件

网站与应用开发

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

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.

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 package:

$ yarn add chakra-ui
# or
$ npm install --save chakra-ui

Getting set up

To start using the components, please follow these steps:

  1. Wrap your application in a ThemeProvider provded by chakra-ui
import { ThemeProvider, ColorModeProvider } from "fannypack";

const App = () => (
  <ThemeProvider>
    <ColorModeProvider>{/* Your app */}</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.

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

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 the Aria Practices Design Patterns and Widgets.

Here is a table of the components and their status.

✅ - Released
⚠️ - Released but buggy
🛠 - Planning to Build
❓ - Might Build?

Status Name
✅ Accordion
✅ Alert
✅ Alert Dialog
✅ Breadcrumb
✅ Button
✅ Box
✅ Checkbox
🛠 Combo Box
✅ Dialog (Modal)
🛠 Disclosure
❓ Feed
✅ Link
🛠 Listbox
🛠 Menu or Menu bar
✅ Menu Button
✅ Popover
✅ Pseudo Box
✅ Radio Group
⚠️ Slider
🛠 Slider (Multi-Thumb)
❓ Table
✅ Tabs
❓ Toolbar
✅ Tooltip
🛠 Tree View
❓ Treegrid
❓ Window Splitter

探索相关项目

加载中…