@dtpr/ui

@dtpr/ui

Framework-neutral helpers, Vue components, and SSR HTML renderer for DTPR content.

@dtpr/ui

@dtpr/ui is the component library for rendering DTPR datachains. It ships three subpath exports so you can pull only the layer you need.

pnpm add @dtpr/ui
SubpathForWhat's inside
@dtpr/ui/coreAny JavaScript / TypeScript runtimeFramework-neutral helpers (locale projection, category grouping, display derivation, validation).
@dtpr/ui/vueVue 3 apps6 Single-File Components (DtprIcon, DtprElement, DtprElementDetail, DtprCategorySection, DtprDatachain, DtprElementGrid).
@dtpr/ui/htmlAny server-side Node runtimerenderDatachainDocument — SSR HTML for MCP Apps iframes.

In this section

  • Core — framework-neutral helpers + types.
  • Vue — the 6 Vue components with props, slots, examples.
  • HTML (SSR)renderDatachainDocument for the MCP Apps flow.
  • Theming — the dtpr cascade layer and CSS custom properties.
Copyright © 2026