Giter Site home page Giter Site logo

thenafi / carbon-components-vue Goto Github PK

View Code? Open in Web Editor NEW

This project forked from carbon-design-system/carbon-components-vue

0.0 0.0 0.0 701.28 MB

Vue implementation of the Carbon Design System

Home Page: http://vue.carbondesignsystem.com

License: Apache License 2.0

Shell 0.31% JavaScript 47.88% HTML 0.51% Vue 36.34% Dockerfile 0.02% SCSS 0.22% MDX 14.72%

carbon-components-vue's Introduction

@carbon/vue-3

Carbon is released under the Apache-2.0 license CI workflow status Maintained with Lerna PRs welcome Chat with us on Discord

Vue implementation of the Carbon Design System A collection of Carbon Components implemented using Vue logo Vue.js.

Carbon Vue library - A Carbon Community Project

The library provides front-end developers & engineers a collection of reusable Vue components to build websites and user interfaces. Adopting the library enables developers to use consistent markup, styles, and behavior in prototype and production work.

Community Contributions Needed

As a community project contributions are not only welcome, but essential for the maintenance and growth of this project.

Install

npm add @carbon/vue

or

$ yarn add @carbon/vue

Add to Vue project

src/main.js

import CarbonVue3 from '@carbon/vue';
import App from './App.vue';
const app = createApp(App);
app.use(CarbonVue3);
app.mount('#app');

See Hello Carbon Vue for an example Vue project with Carbon.

Add to Nuxt project

plugins/carbon-vue.js

import CarbonVue from '@carbon/vue'

export default defineNuxtPlugin((nuxtApp) => {
    nuxtApp.vueApp.use(CarbonVue)
}

See Hello Carbon Nuxt coming soon

Vue 3

  • Vue 2 support will end on Dec 31, 2023. Learn more.
  • Upgrading from Vue 2? Check out the Migration Guide.
  • Vue 2 components can be found on the vue2 branch

Vue 3 components for Carbon 10 have reached parity with the Vue 2 components. More work is needed especially around accessibility. If you want to improve Vue 3 components follow these guidelines.

  1. Fork this repo and checkout the main branch
  2. Look to see which components are currently being improved. You can do this by looking in the issues list.
  3. If you want to improve a component, look in the open issue list to see if someone else might already be working on it. Look for issues with a "V3 - Vue3" label and the name of the component. For example "CvDatePicker - improving accessibility".
  4. If no one else is already working on it, create an issue using the "๐Ÿช Vue 3 - improve component" and label it as above.
    • Work on the component and create a PR when you are ready.
    • Components are expected to be implemented as single file components using the Vue composition api. See CvCheckbox as an example. The Vue 2 components use the options API.
    • You should reference the DOM in the React components storybook and be sure to include any accessibility improvements that might be there.
    • You should update the story and test cases for the component if applicable. Sometimes the story might need updating almost always the test cases for the component will need updates.
    • If you have question tag @davidnixon in your issue and let me know how I can help.

Changelog

CHANGELOG.md

List of available components

View available Vue Components here. Usage information is available in the notes provided with each story.

Building and publishing

The following steps will build and publish the packages:

  • clone or download the repo;
  • run yarn to install dependencies and bootstrap the packages;
  • run yarn build to build all the packages including the storybook;

If you just want to build an individual package you can limit the scope: yarn build --scope @carbon/vue yarn build --scope storybook

To start the storybook in a local server use yarn start.

How to run the storybook

Just follow the steps listed below and you will be able to run the storybook.

  1. After the checkout to the vNext branch, in order to install the dependencies run the command yarn install on the root;
  2. Now, run the command cd storybook to enter the storybook folder, then again run the command yarn install to install the dependencies inside the storybook folder;
  3. Finally, run the command yarn serve inside the storybook folder.

In other words, these are the commands you're going to use in order of execution:

yarn install
cd storybook
yarn serve

or

yarn install
yarn serve:storybook

carbon-components-vue's People

Contributors

lee-chase avatar davidnixon avatar felipebritor avatar olkab avatar dependabot[bot] avatar zrianinamariia avatar dcwarwick avatar timonlukas avatar weslleyrsr avatar mrsideshowjack avatar junglebadger avatar joshblack avatar caioafc avatar mateusbandeiraa avatar janhassel avatar wesleygazz avatar moores2 avatar mojodna avatar conradschmidt avatar sabov avatar michaelamorim4 avatar fontinalis avatar travis1111 avatar rodet avatar kaiwedekind avatar trickstival avatar rafaelmaiach avatar stephenhogsten avatar vinoth-learningthings avatar viniciusls avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.