Skip to content
1 viewer
View
Component · Layout

Inspector

cre8.primitive.inspector

Property panel: an aside of headed sections, each a column of label and control fields; a section may collapse as a details element. Built by InspectorBuilder from bare elements.

Edit live
Category
Layout
Slots
5
States
0
Writer
Legacy

Preview

Live renderShared SSR + WASM writers
<Section
  aria-label="Selection"
  bare={true}
  className="cre8-inspector"
  element="aside"
>
  <Section
    bare={true}
    className="cre8-inspector__section"
    element="section"
  >
    <Section bare={true} className="cre8-inspector__heading" element="div">
      Transform
    </Section>
    <Section bare={true} className="cre8-inspector__field" element="label">
      <Text
        bare={true}
        className="cre8-inspector__label"
        text="X"
        variant="span"
      />
      <Input name="x" value="12" />
    </Section>
    <Section bare={true} className="cre8-inspector__field" element="label">
      <Text
        bare={true}
        className="cre8-inspector__label"
        text="Y"
        variant="span"
      />
      <Input name="y" value="4" />
    </Section>
  </Section>
  <Section
    bare={true}
    className="cre8-inspector__section"
    element="details"
    open={false}
  >
    <Section
      bare={true}
      className="cre8-inspector__heading"
      element="summary"
    >
      Material
    </Section>
    <Section bare={true} className="cre8-inspector__field" element="div">
      <Text
        bare={true}
        className="cre8-inspector__label"
        text="Albedo"
        variant="span"
      />
      <Text text="#d8c49a" />
    </Section>
  </Section>
</Section>
Change this declaration and watch it render:open Inspector in the playground

Anatomy

The named parts of the rendered markup. Recipes style these hooks, and every renderer keeps them stable.

SlotDOM class
root.cre8-inspector
section.cre8-inspector__section
heading.cre8-inspector__heading
field.cre8-inspector__field
label.cre8-inspector__label
5 rows
Role
complementary

States and platforms

The states the contract publishes, the platforms it declares, and the style recipes that dress it.

States
No published states
Platforms
web
Recipes
unstyledruntime-console

Renderers

Legacy writer
Inspector has no shared writer yet: the server renders it through its legacy path, which the WASM DOM does not share.

Every tag in the example above renders through a shared writer.

Declared adapters. A status is the manifest's declaration, not a measured parity result.

TargetRendererStatus
webreactexperimental
1 row

Accessibility

A named complementary region; a field whose value is a control is a <label> around it.

  • Fields that wrap an input, select or textarea render as <label> so the label text names the control.
  • Collapsible sections use native <details>/<summary>, so they work without script.