# gandi-ui

A component library for the Gandi Editor service

[![NPM version](https://img.shields.io/npm/v/gandi-ui.svg?style=flat)](https://npmjs.org/package/gandi-ui)
[![NPM downloads](http://img.shields.io/npm/dm/gandi-ui.svg?style=flat)](https://npmjs.org/package/gandi-ui)

## Usage

[<img height="180" src="https://m.ccw.site/community/images/desktop/gandi-logo.png">](https://gandi-ui.ccw.site/)

## Development

```bash
# install dependencies
$ yarn install

# develop library by docs demo
$ yarn start

# build library source code
$ yarn run build

# build library source code in watch mode
$ yarn run build:watch

# build docs
$ yarn run docs:build

# Locally preview the production build.
$ yarn run docs:preview

# check your project for potential problems
$ yarn run doctor
```

```jsx | pure
import React from 'react';

// 1. Introduce the `GandiProvider` component.
import { GandiProvider } from '@gandi-ide/gandi-ui';

function App() {
  // 2. Wrap the GandiProvider around the root of your application
  return (
    <GandiProvider>
      <TheRestOfYourApplication />
    </GandiProvider>
  );
}
```

## LICENSE

MIT
