Skip to content

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

fix(docs): sync FrameworkSelector with prop updates

Sushmithamallesh085712cd66d6
diff --git a/docs/components/quickstart/framework-selector.tsx b/docs/components/quickstart/framework-selector.tsx
index 89f538fb7..85fc55c50 100644
--- a/docs/components/quickstart/framework-selector.tsx
+++ b/docs/components/quickstart/framework-selector.tsx
@@ -1,7 +1,7 @@
'use client';
import Image from 'next/image';
-import { useState } from 'react';
+import { useState, useEffect } from 'react';
export type Framework =
| 'openai-agents'
@@ -107,6 +107,11 @@ interface FrameworkSelectorProps {
export function FrameworkSelector({ value = 'openai-agents', onChange }: FrameworkSelectorProps) {
const [selected, setSelected] = useState<Framework>(value);
+ // Sync internal state with prop changes
+ useEffect(() => {
+ setSelected(value);
+ }, [value]);
+
const handleSelect = (framework: Framework) => {
setSelected(framework);
onChange?.(framework);