1 viewer
Component · Layout
Inspector
cre8.primitive.inspectorProperty 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.
- Category
- Layout
- Slots
- 5
- States
- 0
- Writer
- Legacy
Preview
<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.
| Slot | DOM class |
|---|---|
| root | .cre8-inspector |
| section | .cre8-inspector__section |
| heading | .cre8-inspector__heading |
| field | .cre8-inspector__field |
| label | .cre8-inspector__label |
- Role
- complementary
States and platforms
The states the contract publishes, the platforms it declares, and the style recipes that dress it.
States
Platforms
Recipes
Renderers
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.
| Target | Renderer | Status |
|---|---|---|
| web | react | experimental |
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.