- Add headless PropertySection and accessible SegmentedControl anatomy - Make PropertyList controlled and exactly typed with an undo-aware editor adapter - Consolidate SDK metadata loaders and link untranslated docs to canonical pages
1.4 KiB
1.4 KiB
| title | description |
|---|---|
| PropertySection | Headless collapsible anatomy for property-panel sections. |
PropertySection
PropertySection supplies collapsible section anatomy and canonical open, empty, and disabled state attributes without imposing presentation.
Anatomy
PropertySectionRoot— controlled or uncontrolled Collapsible statePropertySectionHeader— structural header containerPropertySectionTitle— accessible Collapsible triggerPropertySectionActions— sibling action area, avoiding nested buttonsPropertySectionContent— collapsible content regionPropertySectionEmptyAction— empty-only action that opens before emittingactivate
<script setup lang="ts">
import {
PropertySectionContent,
PropertySectionHeader,
PropertySectionRoot,
PropertySectionTitle
} from '@open-pencil/vue'
</script>
<template>
<PropertySectionRoot default-open>
<PropertySectionHeader>
<PropertySectionTitle>Layout</PropertySectionTitle>
</PropertySectionHeader>
<PropertySectionContent>Panel fields</PropertySectionContent>
</PropertySectionRoot>
</template>