React components for the Graasp ecosystem.
You will have to add the library and its peer dependencies:
yarn add @graasp/ui @graasp/stylis-plugin-rtl date-fns lucide-react
import { MyComponent } from '@graasp/ui'
const Example = () => {
return <MyComponent />
}
Graasp apps can use specific components to share style without needing to import the full bundle: use import from @graasp/ui/apps
Since Quill does not play nicely with SSR frameworks (access to the document property is not gated), it is exposed in its own sub-package: @graasp/ui/text-editor
Storybook provides a nice display of defined UI components. To open the framework, run
yarn storybook
To explore the UI components and play with their props click the link bellow:
AGPL-3.0 © Graasp Association