Skip to content

Beautiful, AI-native markdown IDE and LLM wiki

docs(open-knowledge): fix Toggle preview to reference Toggle grouping, not Accordion (#3207)

Abraham80a77ffeec5a
diff --git a/docs/content/reference/components/toggle.mdx b/docs/content/reference/components/toggle.mdx
index 0b788a981..a874be130 100644
--- a/docs/content/reference/components/toggle.mdx
+++ b/docs/content/reference/components/toggle.mdx
@@ -9,8 +9,8 @@ keywords: "toggle, collapsible, expand, details, disclosure, fold"
<ComponentPreview>
<AccordionPreview title="Show me the details" description="Click to expand" icon="lucide:BookOpen">
Native `<details>` under the hood — same substrate as the app render.
- A standalone expand/collapse block; use `<Accordion>` with a shared
- `name` when you need mutually-exclusive siblings.
+ Pass a shared `name` to sibling toggles and the browser will keep
+ only one open at a time.
</AccordionPreview>
</ComponentPreview>
diff --git a/docs/scripts/generate-component-docs.ts b/docs/scripts/generate-component-docs.ts
index 1f02d91a7..2cac51b04 100644
--- a/docs/scripts/generate-component-docs.ts
+++ b/docs/scripts/generate-component-docs.ts
@@ -278,8 +278,8 @@ const PREVIEWS: Partial<Record<string, string>> = {
Toggle: `<ComponentPreview>
<AccordionPreview title="Show me the details" description="Click to expand" icon="lucide:BookOpen">
Native \`<details>\` under the hood — same substrate as the app render.
- A standalone expand/collapse block; use \`<Accordion>\` with a shared
- \`name\` when you need mutually-exclusive siblings.
+ Pass a shared \`name\` to sibling toggles and the browser will keep
+ only one open at a time.
</AccordionPreview>
</ComponentPreview>`,
Tabs: `<ComponentPreview>