React components for the Graasp ecosystem.
npm install --save @graasp/ui
If you use the Table
component, you should import it with the lines below:
import { Table } from '@graasp/ui/dist/table';
import 'ag-grid-community/dist/styles/ag-theme-material.min.css';
import React, { Component } from 'react'
import MyComponent from '@graasp/ui'
import '@graasp/ui/dist/index.css'
class Example extends Component {
render() {
return <MyComponent />
}
}
Storybook provides a nice display of defined UI components. To open the framework, run
yarn storybook
To navigate the UI components click the link bellow:
AGPL-3.0 © Graasp Association