Skip to content

Compared with other libraries

Shadleaf is not the only way to get good-looking components into a server-rendered application. This section sets it next to the libraries people most often ask about, one page each or one for two that are close, and says when one of them is the better choice. The pages describe them as of November 2026; prices and versions change, so check their own sites before you decide.

The libraries fall into four groups, and the comparison is a different one for each:

  1. Components for another stack (Flux): the same idea as Shadleaf, for Laravel.
  2. Another architecture on the same stack (Vaadin): Java and Spring, but the UI lives on the server as Java objects instead of HTML templates.
  3. shadcn/ui as plain HTML (Basecoat, starting-point-ui): the same design as Shadleaf, as CSS classes for any stack.
  4. Class and copy-paste libraries (daisyUI, Flowbite, Penguin UI, Pines, Canon): markup you write or copy into your templates, with a look of their own.

Every library in groups 3 and 4 works from Thymeleaf, because they are CSS and a script, and Thymeleaf writes HTML. The difference is in what you write, and what you keep up to date. With a class library, a dialog is its markup, written out in every template that has one:

<!-- daisyUI -->
<button class="btn" onclick="edit_profile.showModal()">Edit profile</button>
<dialog id="edit_profile" class="modal">
<div class="modal-box">
<h3 class="text-lg font-bold">Edit profile</h3>
<div class="modal-action">
<form method="dialog"><button class="btn">Close</button></form>
</div>
</div>
</dialog>

With Shadleaf the markup is in the library’s template, and you write the component:

<sl:button commandfor="edit-profile" command="show-modal">Edit profile</sl:button>
<sl:dialog id="edit-profile">
<sl:dialog-header>
<sl:dialog-title>Edit profile</sl:dialog-title>
</sl:dialog-header>
...
</sl:dialog>

That brings a few things no class library can:

  • One place to change. A fix or a new version of a component’s markup reaches every page that uses it. Copied markup stays as it was copied.
  • Declared props. variant="destructve" fails the render with the legal values, and so does an icon-only button without an accessible name. A misspelt class does nothing, silently.
  • Spring wiring. th:field on a field gives its label, control, error message, aria-describedby and aria-invalid in one go; the table sorts and pages a Spring Data Page; the user menu reads Spring Security; every text is a message you can translate. With a class library, you write all of that yourself.
  • No Tailwind build. Most class libraries are Tailwind plugins, so your application compiles Tailwind. Shadleaf’s jar ships the compiled CSS (Tailwind CSS).
  • IDE completion of tags and props, through web-types.

What you give up is the freedom of owning every line of markup, and a library that works the same in any language. Shadleaf lets you take a template over when a prop is not enough (the adjustability ladder), but it only runs in Spring Boot with Thymeleaf.