• This repository has been archived on 20/Sep/2024
  • Stars
    star
    1,865
  • Rank 24,853 (Top 0.5 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 5 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

⚡️ Build scalable and accessible Vue.js applications with ease.

Build & Test Components Netlify Status Chakra UI Vue downloads All contributors

chakra-ui symbol

Build scalable and accessible Vue.js applications with ease.

@chakra-ui/vue gives you a set of accessible and composable Vue components that you can use to build your favourite applications and sites.

Made for Vue 2.X

Looking for the documentation?

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

中文文档翻译Github问题

Features

  • Ease of Styling: Chakra UI contains a set of layout components like CBox and CStack that make it easy to style your components by passing props. Learn more
  • Flexible & composable: Chakra UI components are built on top of a Vue 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.

Table of Contents

  1. Installation
  2. Usage a. With Nuxt

Installation

yarn add @chakra-ui/vue @emotion/css

or

npm install @chakra-ui/vue @emotion/css

Note: If you're using Nuxt, you need to install @nuxtjs/emotion package as well to server-side render your styles.

yarn add @chakra-ui/vue @emotion/css @nuxtjs/emotion

Usage

1. Import the Chakra UI plugin in your main.js file.

import Vue from 'vue'
import Chakra from '@chakra-ui/vue'
import App from './App.vue'

Vue.use(Chakra)

new Vue({
  el: '#app',
  render: (h) => h(App)
}).$mount()

2. Wrap your application inside the Chakra CThemeProvider. We also recommend that you include the CReset component to normalize all browser styling.

In your App.vue file.

<template>
  <CThemeProvider>
    <CReset />

    <!--
      Your application code goes here! 😁
    -->
  </CThemeProvider>
</template>

<script>
  import { CThemeProvider, CReset } from '@chakra-ui/vue'

  export default {
    name: 'App',
    components: {
      CThemeProvider,
      CReset
    }
  }
</script>

If you'd like to toggle your app between dark and light mode, you can also wrap your application inside the ColorModeProvider component.

3. Hurray!🎉 Now the fun can begin. You can start using components like so:

<template>
  <CThemeProvider>
    <CReset />

    <!--
      Your application code goes here! 😁
    -->
    <CButton variantColor="blue">
      Chakra consumed ⚡️
    </CButton>
  </CThemeProvider>
</template>

<script>
  import { CThemeProvider, CReset, CButton } from '@chakra-ui/vue'

  export default {
    name: 'App',
    components: {
      CThemeProvider,
      CReset,
      CButton
    }
  }
</script>

Codesandbox starters

Storybook Components

You can also view all developed components in Storybook!

Development for Contributing:

Interested in contributing? See our open issues! Remember to take a look at our CONTRIBUTORS guide.

yarn install
yarn build && yarn bootstrap
yarn dev

Related

Contributors

Thanks goes to these wonderful people (emoji key):


Jonathan Bakebwa

💻 ⚠️ 📖

Mesut

💻 ⚠️

Omereshone Kelvin Oghenerhoro

📖 💻

Eric Carboni

📖

ankorGH

📖

Emmanuel Raymond

💻 📖

Harry Gulliford

📖

IFEANYICHUKWU AMAJUOYI

📖

Pierre Grimaud

📖

Ekunola Ezekiel

🔧 📖

Gift Egwuenu

📖

Joshua Angelo Bienes

📖

Saptak Sengupta

📖

Kuro Hsu

📖 💻

Anmol

📖

Vishnumohan R K

📖

Ken Love

💻 ⚠️

Guilherme Schalch

💻

Žiga Vukčevič

📖

Sybren W

📖 🖋 💡 💻

odanado

💻 🔧

Jonathan Hutchison

💻 🐛 🤔 ⚠️ 📖

JT Houk

📖 📦

Vincent Palma

📖

MaySoMusician

💻

Martin

💻 ⚠️

Ejiro Asiuwhu

📖

Abel N. Nieva

💻

Lê Thông

💻

Reinier van der Leer

💻

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

More Repositories

1

chakra-ui

⚡️ Simple, Modular & Accessible UI Components for your React Applications
TypeScript
37,613
star
2

panda

🐼 Universal, Type-Safe, CSS-in-JS Framework for Product Teams ⚡️
TypeScript
5,147
star
3

zag

Finite state machines for building accessible design systems and UI components. Works with modern frameworks, and even just Vanilla JS
TypeScript
3,969
star
4

ark

A headless library for building reusable, scalable design systems that works for a wide range of JS frameworks.
TypeScript
3,720
star
5

awesome-chakra-ui

A collection of Chakra UI-related awesomeness
447
star
6

chakra-ui-docs

Documentation website for chakra ui
MDX
303
star
7

chakra-ui-vue-next

⚡️ The next most epic version of Chakra UI Vue based on Vue 3 🚀(WIP)
TypeScript
261
star
8

zag-docs

Documentation website for Zag
TypeScript
127
star
9

frontity-chakra-ui-theme

A Frontity theme built with Chakra UI
JavaScript
104
star
10

polymorphic

Polymorphic component factories for JSX frameworks
TypeScript
73
star
11

eslint-plugin-panda

Official ESLint Plugin for Panda CSS
TypeScript
71
star
12

pro-component-issues

Bug fixes and feature request tracking for Chakra UI Pro.
62
star
13

design-vs-dev

This is the repo for Chakra UI's Design vs Dev Challenges. You can watch the YouTube series here: https://www.youtube.com/playlist?list=PLLh_woCGjyGqed2oBdr7K0r7HcS6X4DCH
TypeScript
56
star
14

panda-vscode

The official Panda CSS VSCode extension
TypeScript
48
star
15

play.chakra-ui.com

The Playground for Chakra UI
TypeScript
37
star
16

vscode-snippets

VSCode Snippets for Chakra UI
JavaScript
20
star
17

chakra-codemod

Codemod transformations to help upgrade to the latest Chakra UI
TypeScript
19
star
18

pro-theme

Chakra UI Pro Theme
TypeScript
17
star
19

panda-mastery-lessons

Panda Mastery Course Content (as Code)
TypeScript
14
star
20

vue-docs

Chakra UI Vue (v2) Official Documentation
TypeScript
13
star
21

chakra-loader

Chakra UI Vue webpack loader for auto-import and registration of Chakra components
JavaScript
13
star
22

panda-templates

Showcasing how to use Panda in various frameworks
11
star
23

vue-cli-plugin-chakra-ui

This plugin setups Chakra UI Vue in your Vue CLI generated projoect
JavaScript
8
star
24

chakra-ui-docusaurus

TypeScript
7
star
25

examples

Chakra UI example projects
7
star
26

chakra-ui-themes

TypeScript
6
star
27

figpilot-issues

Issue Tracker for FigPilot
5
star
28

rfcs

RFCs for Chakra UI
5
star
29

gatsby-starter-chakra-ui-ts

TypeScript
3
star
30

hackathon

TypeScript
1
star