Skip to content

AI-native design editor. Open-source Figma alternative.

1.4 KB
Raw Blame

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 state
  • PropertySectionHeader — structural header container
  • PropertySectionTitle — accessible Collapsible trigger
  • PropertySectionActions — sibling action area, avoiding nested buttons
  • PropertySectionContent — collapsible content region
  • PropertySectionEmptyAction — empty-only action that opens before emitting activate
<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>

Generated API reference