diff --git a/platform/developer-guide/docs/custom-apps-development/vc-shell/components/.pages b/platform/developer-guide/docs/custom-apps-development/vc-shell/components/.pages new file mode 100644 index 0000000000..111529b9fc --- /dev/null +++ b/platform/developer-guide/docs/custom-apps-development/vc-shell/components/.pages @@ -0,0 +1,11 @@ +# AUTO-GENERATED FROM vc-shell — DO NOT EDIT MANUALLY +# To update: edit a *.docs.md in vc-shell, then run yarn docs:sync +title: Components +nav: + - layout + - form + - data-display + - feedback + - navigation + - media + - misc diff --git a/platform/developer-guide/docs/custom-apps-development/vc-shell/components/data-display/.pages b/platform/developer-guide/docs/custom-apps-development/vc-shell/components/data-display/.pages new file mode 100644 index 0000000000..7908a3783d --- /dev/null +++ b/platform/developer-guide/docs/custom-apps-development/vc-shell/components/data-display/.pages @@ -0,0 +1,8 @@ +# AUTO-GENERATED FROM vc-shell — DO NOT EDIT MANUALLY +# To update: edit a *.docs.md in vc-shell, then run yarn docs:sync +title: Data Display +nav: + - VcAccordion: vc-accordion.md + - VcDataTable: vc-data-table.md + - VcGallery: vc-gallery.md + - VcImageTile: vc-image-tile.md diff --git a/platform/developer-guide/docs/custom-apps-development/vc-shell/components/data-display/vc-accordion.md b/platform/developer-guide/docs/custom-apps-development/vc-shell/components/data-display/vc-accordion.md new file mode 100644 index 0000000000..8974098497 --- /dev/null +++ b/platform/developer-guide/docs/custom-apps-development/vc-shell/components/data-display/vc-accordion.md @@ -0,0 +1,311 @@ + + + + + +# VcAccordion + +Collapsible content sections with smooth CSS grid animations, customizable collapsed heights with fade-out preview, and four visual variants. Supports both data-driven rendering via `items` array and slot-based composition with `VcAccordionItem`. + +## When to Use + +- FAQ sections, expandable product details, or grouped settings +- Progressive disclosure to reduce visual clutter on content-heavy pages +- Partial content preview in collapsed state (via `collapsedHeight`) +- Expandable form sections or configuration panels + +When NOT to use: + +- For navigation groups -- use `VcMenuGroup` +- For tab-based content switching -- use `VcTabs` +- For single collapsible panels without siblings -- use `VcAccordionItem` directly + +## Quick Start + +
+ +```vue + +Currently open: {{ openItem }}
+ + + +``` + + + +### Multiple Open Items + +Set `multiple` to `true` to allow expanding several items simultaneously. The `v-model` value becomes an array. + +```vue +