To start prompting components, go to workstation.justprintit.ai and register/login.
You can use the prompt interface to create components. In this example, I created a registration form. The code generated create placeholder code for where an api request or server action should go. Here is the example prompt I used.
Create components/register with the fields username, email, password, confirmPassword, wrap it in a container div
You can also prompt it to query external apis. In this example, I prompt it to query example.com and render the contents on the homepage. Here is the example prompt I used.
Create components/example and make it fetch the contents of https://example.com and render it on the page.
Note that you can also prompt it to connect server actions and apis. The following are examples of having a register form connect to both a server action or register post api request.
Add the server action for registering and then use the following prompt.
Create components/register and create a register form that uses the server action to create a new account.
Add the api route for registering and then use the following prompt.
Create components/register and create a register form that sends a post request to /api/register to create a new account.