@gandi-ide/gandi-ui
v1.0.13
Published
gandi 组件库
Downloads
26
Readme
gandi-ui
A component library for the Gandi Editor service
Usage
Development
# 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
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