Installation
Bring Foundry into your Axonyx project.
You will need Rust and the Axonyx CLI.Framework setup ↗
Create a project
Start a new Axonyx project using the site template.
Terminal
create-axonyx my-app --yes --template site
cd my-appAdd Foundry UI
Add the Foundry UI package to your project. Start here if you already have an Axonyx app.
Terminal
cargo ax add uiUse your first component
Import a component and use it in a page.
app/page.asx
use "@axonyx/ui"
import { Button } from "@axonyx/ui/foundry/Button.asx"
page Home() {
return ASX {
<Button variant="primary">Ship it</Button>
}
}Preview