FilamentApp

fun FilamentApp(content: @Composable () -> Unit)

Entry point for Filament-powered Compose web apps.

Handles the full lifecycle:

  1. Initializes the Filament WASM module and spreads globals

  2. Creates a full-viewport root element in the DOM

  3. Mounts a ComposeViewport and renders content

Usage:

fun main() = FilamentApp { App() }

The hosting index.html only needs to load filament.js before the application script — no <div id="root"> is required.