CookieConsent
A cookie-consent banner that appears at the bottom of the page. Renders a standard accept/decline prompt.
Basic usage
Section titled “Basic usage”CookieConsent.builder().build()Properties
Section titled “Properties”| Property | Type | Default | Description |
|---|---|---|---|
style | String | — | Inline CSS |
cssClasses | String | — | CSS class names |
Add CookieConsent to your app’s root Form content or footer so it appears on every page:
Form.builder() .content(List.of( mainContent, CookieConsent.builder().build() )) .build()The banner handles showing itself only when consent has not yet been given (stored in local storage by the client-side component).