Skip to content

graasp/graasp-ui

Repository files navigation

Graasp UI

React components for the Graasp ecosystem.

GitHub package.json version npm (scoped) GitHub Storybook deployment

Packages
GitHub package.json - react npm peer dependency version GitHub package.json dependency version (prod) - immutable Mui version

Install

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';

Usage

import React, { Component } from 'react'

import MyComponent from '@graasp/ui'
import '@graasp/ui/dist/index.css'

class Example extends Component {
  render() {
    return <MyComponent />
  }
}

Storybook Storybook

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:

License

AGPL-3.0 © Graasp Association