Start
Install the CLI and create a project.
Layout recipe
A small Grid wrapper for repeated cards and content tiles. Choose the column count at each breakpoint without writing layout CSS.
Next: GridThree columns on wide screens, two on tablets, and one on phones. Resize the viewport to see the same content reflow.
Install the CLI and create a project.
Compose pages from Foundry primitives.
Build and deploy the Rust server.
<ContentGrid cols="3" colsTablet="2" colsMobile="1" gap="lg">
<Card title="Start"><Copy>Install the CLI and create a project.</Copy></Card>
<Card title="Build"><Copy>Compose pages from Foundry primitives.</Copy></Card>
<Card title="Ship"><Copy>Build and deploy the Rust server.</Copy></Card>
</ContentGrid>Use the same recipe for compact data cards. ContentGrid arranges children; the cards own their content and styling.
<ContentGrid cols="2" colsMobile="1" gap="sm">
<Card title="Published"><Badge tone="success">24</Badge></Card>
<Card title="Drafts"><Badge tone="warning">6</Badge></Card>
</ContentGrid>cargo ax add ui[dependencies]
axonyx-ui = "0.0.80"use "@axonyx/ui"ContentGrid renders Grid internally. It accepts cols, colsTablet, colsMobile, and gap; use Grid directly if you need intrinsic min tracks or align. Without a breakpoint-specific column count, Grid falls back to one column at that breakpoint.
import { ContentGrid } from "@axonyx/ui/foundry/ContentGrid.asx"String, optional. Wide-screen columns from 1 to 6.
String, optional. Columns below 900px; otherwise one column.
String, optional. Columns below 600px; otherwise one column.
String, optional. xs, sm, md, lg, xl, or 2xl.