renderPlateHtml
renderPlateHtml(
plate):string
Defined in: packages/xray/src/core.ts:42
Render a stitch-free Plate to a self-contained HTML string — the
framework-neutral equivalent of <Skeleton plate loading />, for when you
don’t want to pull a framework adapter (demos, plain DOM, server strings).
Drop it in with el.innerHTML = renderPlateHtml(plate) or React’s
dangerouslySetInnerHTML. The string is self-contained: it carries BASE_CSS
- the plate’s scoped rules in its own
<style>. Stitched plates (a nested<Skeleton>) need an adapter to mount their child plates, so they throw here.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”string