Skip to main content

React Components

@clinikapi/react provides 14 pre-built clinical UI widgets that communicate through your backend proxy — never directly to ClinikAPI.

The Proxy Pattern

React widgets run in the browser and cannot use the SDK directly (that would expose your API key). Instead, they talk to your backend through a proxyUrl:

Setting Up a Proxy

Using a Widget

Available Widgets

Common Props

All widgets accept:

Demo Mode

Set proxyUrl="demo" to run any widget in demo mode — no backend needed, no API calls made. Useful for prototyping and showcasing.

Security

  • Widgets never receive your API key
  • All data flows through your backend proxy
  • You control authentication and authorization on your proxy
  • proxyUrl is validated to prevent open redirect attacks — must be a relative path or same-origin URL