React Components
Medplum maintains a library of React components which we use in the Medplum app and are open source. We support use of our React component library in third party apps as well.
- Storybook
- Source Code on Github
The best way to get started is to try one of the Medplum example apps:
Or, you can try our full-featured patient demo called Foo Medical.
Prerequisites
As the name implies, Medplum React components are built with React. Medplum requires React 18+.
npm i -D react react-dom
Medplum React components are built with Mantine, which is a fantastic library for building functional accessible web applications. Medplum uses Mantine version 7+.
npm i -D @mantine/core @mantine/hooks @mantine/notifications
Medplum and Mantine both use PostCSS for CSS processing. Mantine provides a PostCSS preset for common configuration.
npm i -D postcss postcss-preset-mantine
While not strictly required, Medplum recommends using React Router for client side routing. Medplum uses React Router version 6+.
npm i -D react-router-dom
And then finally you can install Medplum React components:
npm i -D @medplum/core @medplum/react