openpencil/packages/docs/programmable/sdk/api/components/property-list-root.md
2026-03-24 23:24:08 +03:00

752 B

title description
PropertyListRoot Headless structural primitive for fills, strokes, and effects list UIs.

PropertyListRoot

PropertyListRoot is a headless structural primitive for array-based property editors.

It is intended for property UIs like:

  • fills
  • strokes
  • effects

It provides slot props for:

  • current items
  • mixed-state detection
  • add/remove/update/patch operations
  • visibility toggling per item

Usage

<PropertyListRoot prop-key="fills" v-slot="{ items, add, remove }">
  <div v-for="(fill, index) in items" :key="index">
    <button @click="remove(index)">Remove</button>
  </div>
  <button @click="add(defaultFill)">Add fill</button>
</PropertyListRoot>