<schema-view> — read-only Lit Custom Element variant of
<schema-component>.
Parallel to React's <SchemaView>: renders the supplied schema +
value in read-only mode, never emits a change event, and ignores
any user input on a nested control. Subclasses
<schema-component> so the implementation work is just forcing
readOnly = true and refusing to propagate child change events.
SSR caveat. This element ALSO runs under @lit-labs/ssr for
the equivalent of React's server-rendered <SchemaView>. The
server path uses Declarative Shadow DOM via the renderToString
helper in lit/ssr.ts. See that module's docstring for the
documented limitations: @lit-labs/ssr is labs status,
@lit/context does not server-render, and light-DOM-only
components are not supported.
<schema-view>— read-only Lit Custom Element variant of<schema-component>.Parallel to React's
<SchemaView>: renders the supplied schema + value in read-only mode, never emits achangeevent, and ignores any user input on a nested control. Subclasses<schema-component>so the implementation work is just forcingreadOnly = trueand refusing to propagate child change events.SSR caveat. This element ALSO runs under
@lit-labs/ssrfor the equivalent of React's server-rendered<SchemaView>. The server path uses Declarative Shadow DOM via therenderToStringhelper inlit/ssr.ts. See that module's docstring for the documented limitations:@lit-labs/ssris labs status,@lit/contextdoes not server-render, and light-DOM-only components are not supported.