Skip to content
Ilha
Esc
navigateopen⌘Jpreview
On this page

Astro reference

Compact index of @ilha/astro — ilhaIntegration, getRenderer, client/server entries, and the client directives.

A map of the public @ilha/astro API. The full guide lives at Astro.

Exports and entry points

Import path Use it for
@ilha/astro ilha() integration and getRenderer().
@ilha/astro/client.js Client hydration entry (registered by Astro).
@ilha/astro/server.js Server renderer entry (registered by Astro).

You almost never import the client or server entrypoints yourself — ilha() registers them through Astro’s renderer API.

ilha() integration

// astro.config.mjs
import { defineConfig } from "astro/config";
import { ilha } from "@ilha/astro";

export default defineConfig({
  integrations: [ilha()],
});

ilha() accepts IlhaIntegrationOptions { include?, exclude? }. It routes ilha islands to Astro’s renderer, dedupes ilha, and SSR/hydrates islands inside <astro-island>. See Astro for the full setup, client-directive table, and plain-component behavior.

Astro · Hydratable

Was this page helpful?