plasma-fhir-react-components
Last updated
Last updated
This package is a set of React components for displaying FHIR resources (mostly R4, but there are a few DSTU2 components). The components bind directly to FHIR resources.
Out of the box, components are not styled. The styles can and should be customized using CSS. The components are merely to provide logic and structure to components. It is up to you (the developer) to style them in a way that matches your application.
Check out our Storybook project to see a demo of each component.
Import the components and use them in your application. They should take a FHIR resource as a prop.
Each component has a unique CSS class name(s). You can specify the styles for these classes in your own custom CSS file.
If you are using SASS along with another CSS library, you can use the @apply
operator to add classes directly
Use "Inspect Element" in the browser to determine the class names of each component.
yarn storybook
yarn build-storybook
yarn test
In your app:
npm install --save ../../packages/plasma-fhir-react-components
After making changes:
This package: yarn rollup
Your app: npm install --save ../../packages/plasma-fhir-react-components
When deploying, please rollup and publish new version to NPM
yarn rollup
Increment version
yarn rollup
yarn storybook
(make sure everything looks ok)
npm publish
yarn build-storybook
Publish the static files to plasmafhir.com/plasma-fhir-react-components