Convert to React
sp_to_reactConverts HTML and Tailwind code into React/Next.js components with state, props, hooks, and optional shadcn, Radix, or MUI component mapping.
Instructions
Convert HTML/Tailwind to Next.js/React components with proper state, props, hooks, and optional shadcn/radix/MUI mapping
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"html": "<html>"
},
"name": "sp_to_react"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | HTML/Tailwind source to convert | |
| componentLibrary | No | none | |
| appRouter | No | Use Next.js App Router (React only) |