Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

fix(docsite): use CollapsibleGroup in Collapsible "With Dividers" example (#3646)

arman2ea8c1d6b1da
diff --git a/packages/cli/templates/blocks/components/Collapsible/CollapsibleWithoutCard.tsx b/packages/cli/templates/blocks/components/Collapsible/CollapsibleWithoutCard.tsx
index 3de84c8972..fa3f79ca58 100644
--- a/packages/cli/templates/blocks/components/Collapsible/CollapsibleWithoutCard.tsx
+++ b/packages/cli/templates/blocks/components/Collapsible/CollapsibleWithoutCard.tsx
@@ -2,34 +2,36 @@
'use client';
-import {Collapsible} from '@astryxdesign/core/Collapsible';
+import {Collapsible, CollapsibleGroup} from '@astryxdesign/core/Collapsible';
import {Divider} from '@astryxdesign/core/Divider';
import {Text} from '@astryxdesign/core/Text';
import {VStack} from '@astryxdesign/core/Layout';
export default function CollapsibleWithoutCard() {
return (
- <VStack gap={3} style={{width: '100%', maxWidth: 400}}>
- <Collapsible trigger="Deployment Details">
- <Text type="body">
- Last deployed on April 18, 2026 at 3:42 PM by Sarah Chen. Build
- duration was 2m 14s with zero warnings.
- </Text>
- </Collapsible>
- <Divider />
- <Collapsible trigger="Environment Variables" defaultIsOpen={false}>
- <Text type="body">
- 12 variables configured. Last updated March 30, 2026. All secrets are
- encrypted at rest with AES-256.
- </Text>
- </Collapsible>
- <Divider />
- <Collapsible trigger="Build Logs" defaultIsOpen={false}>
- <Text type="body">
- Build completed successfully. 847 modules compiled, 0 errors, 0
- warnings. Bundle size: 142 KB gzipped.
- </Text>
- </Collapsible>
- </VStack>
+ <CollapsibleGroup type="single" defaultValue="deployment">
+ <VStack gap={3} style={{width: '100%', maxWidth: 400}}>
+ <Collapsible trigger="Deployment Details" value="deployment">
+ <Text type="body">
+ Last deployed on April 18, 2026 at 3:42 PM by Sarah Chen. Build
+ duration was 2m 14s with zero warnings.
+ </Text>
+ </Collapsible>
+ <Divider />
+ <Collapsible trigger="Environment Variables" value="environment">
+ <Text type="body">
+ 12 variables configured. Last updated March 30, 2026. All secrets
+ are encrypted at rest with AES-256.
+ </Text>
+ </Collapsible>
+ <Divider />
+ <Collapsible trigger="Build Logs" value="logs">
+ <Text type="body">
+ Build completed successfully. 847 modules compiled, 0 errors, 0
+ warnings. Bundle size: 142 KB gzipped.
+ </Text>
+ </Collapsible>
+ </VStack>
+ </CollapsibleGroup>
);
}