[▲ Vercel Community](/) · [Categories](/categories) · [Latest](/latest) · [Top](/top) · [Live](/live)

[AI SDK](/c/ai-sdk/62)

# Example with typed components

38 views · 0 likes · 1 post


benjick (@benjick) · 2025-11-22

Hello

Is there an example on how to type tool call responses and re-using those types in React components?

Look at this example here: https://ai-sdk.dev/docs/ai-sdk-ui/chatbot-tool-usage#client-side-page

\`case 'tool-askForConfirmation': {\` ← how can I extract everything in here to a AskForConfirmation component with correct types? 

Best