Skip to content

UI

A lightweight record that carries global UI settings: the browser tab title, favicon, and the default home route. Use it when you need to configure these properties fluently without using the @UI annotation.

@Builder
public record UI(String favicon, String pageTitle, String homeRoute) {}
PropertyTypeDescription
faviconStringURL of the browser favicon
pageTitleStringBrowser tab title
homeRouteStringDefault route shown when navigating to the root
UI.builder()
.pageTitle("My App")
.favicon("/assets/favicon.ico")
.homeRoute("/dashboard")
.build()