Loading...
Loading...
AI-powered generative UI with Thesys - create React components from natural language.
npx skill4agent add secondsky/claude-skills thesys-generative-uiimport { generateUI } from 'thesys';
const ui = await generateUI({
prompt: 'Create a user profile card with avatar, name, and email',
schema: {
type: 'component',
props: ['name', 'email', 'avatar']
}
});
export default function Profile() {
return <div>{ui}</div>;
}const form = await generateUI({
prompt: 'Create a contact form with name, email, and message fields',
theme: 'modern'
});references/what-is-thesys.mdreferences/use-cases-examples.mdreferences/tool-calling.mdreferences/integration-guide.mdreferences/component-api.mdreferences/ai-provider-setup.mdreferences/tool-calling-guide.mdreferences/theme-customization.mdreferences/common-errors.mdbasic-chat.tsxcustom-component.tsxtool-calling.tsxtheme-dark-mode.tsxapp/page.tsxapp/api/chat/route.tstool-calling-route.tsworker-backend.tsfrontend-setup.tsxtheme-config.tstool-schemas.tsstreaming-utils.ts