Create stories with the agent
Request examples for new or existing components and add the states you need to review.
Ask the agent for stories to review a component's appearance, content, or states. Name the component and describe the examples you want to see.
Create a component with stories
The agent creates stories as it builds components with their own states. Include the states you want to review in your request:
Create a button component with stories for its default, disabled, and loading states.
When the agent finishes, open Design → Stories, find the button, and inspect its variants. Check that the label remains readable and the different states are distinguishable.
Add stories for an existing component
You can request a story for any component already in your project, including one that has no examples yet.
- In chat, ask for a story. Name the component or describe where it appears, and list the states or content you want to see.
- After the agent finishes, open Design → Stories and find the new example.
- Inspect each requested variant and ask for corrections if an example is missing or does not show the intended state.
For example:
Create stories for the product card used on the shop page. Show a product with an image, a product without an image, and an unavailable product. Use the existing card.
If Reforma shows that a component has no story, select Create in chat to start the request. If the entire gallery is empty, Initialize stories asks the agent to add examples for existing components. Wait for the agent to finish before reviewing the examples.
Add a variant
In the Stories gallery, open the existing story card's actions menu and select Add to chat. Ask for another example, describing the state and content you want to inspect.
Add a variant of this card with a long product title and no image.
If the component already supports the state, ask the agent to show it in the story. If you want new behavior, include that in the request:
Add a loading state to this card and a story variant that shows it.
Open the story again and check the new variant alongside the existing ones.