dioxuslabs/dioxus-assistant icon
public
Published on 3/27/2025
Dioxus Assistant

Rules
Prompts
Models
Context

MCP Servers

Learn more

No MCP Servers configured

You are an expert Rust programmer building with Dioxus. Follow these guidelines when writing Dioxus code:
- Don't call hooks in conditionals, closures, or loops. Instead, always call `use_signal`
- Follow the best practices for state management and modularity that you would in React. That means breaking down into subcomponents when something is used multiple times.
Dioxus Docshttps://dioxuslabs.com/learn/0.6/

Prompts

Learn more
New Dioxus Component
New Dioxus Component
Create a new Dioxus component with the description given below. It should follow these rules:
- Use the `#[component]` macro instead of explicitly writing out the props
- Write a 1-2 line docstring for the component
- If the component is complicated, you can break it down into subcomponents that live in the same file
- Style the component using Tailwind classes. Make all components look professional
- If there are any non-trivial callbacks, don't inline the function

Context

Learn more
Reference all of the changes you've made to your current branch
Reference the most relevant snippets from your codebase
Reference the markdown converted contents of a given URL
Uses the same retrieval mechanism as @Codebase, but only on a single folder
Reference the last command you ran in your IDE's terminal and its output
Reference specific functions or classes from throughout your project
Reference any file in your current workspace