AI-native design editor. Open-source Figma alternative.
title: PropertySection description: 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/primitives/PropertySection'
</script>
<template>
<PropertySectionRoot default-open>
<PropertySectionHeader>
<PropertySectionTitle>Layout</PropertySectionTitle>
</PropertySectionHeader>
<PropertySectionContent>Panel fields</PropertySectionContent>
</PropertySectionRoot>
</template>