@photonhealth/elements
v0.17.6
Published
Photon's collection of customizable and reusable components to help clients integrate seamlessly with our system. Elements can be used to add prescribing functionality into any web-based clinical tool.
Keywords
Readme
Photon Elements
Photon's collection of customizable and reusable components to help clients integrate seamlessly with our system. Elements can be used to add prescribing functionality into any web-based clinical tool.
Local Development
To run at http://localhost:3000:
npx nx run elements:startThis command recompiles components code on change, but does not hot refresh the client. You'll need to refresh the webpage manually to see changes.
To modify the embedded component, edit attributes of element photon-prescribe-workflow inside index.html
To view available attributes/options, see photon-prescribe-workflow-component.tsx or official docs
Components
After editing packages/components, re-run npx nx run components:build to see TypeScript and other changes load into packages/elements
Usage
Installation
npm i @photonhealth/elementsExample
import('@photonhealth/elements').catch((err) => {});Full documentation of available elements and example configurations can be found here: Photon Elements Documentation
