Skip to main content

Hono JSX setup

Use this setup for server-rendered Hono pages. Silva UI components render on the server with hono/jsx.

Install

Load styles once

Import silva-ui/style.css in the module shared by every route. It includes component styles and the built-in theme classes.

Render a route

Add client interaction

Hono JSX can stay server-only. For controls with browser state or event handlers, add a small hydration entry. See Client hydration for hono/jsx/dom, or use HonoX when islands fit the app better.

TypeScript setup

tsconfig.json
For Vite, use the equivalent transform:
vite.config.ts