
foojay · 6 min readWeb performance
You don't need React to get a component library
Shadleaf lets Spring Boot developers use a rich, accessible component library in Thymeleaf without adding a JavaScript framework. By integrating htmx for interactivity, developers can build tables, dialogs, and toasts with minimal JavaScript, keeping all logic in Java.
- Add shadleaf-spring-boot-starter and htmx dependencies to enable server‑side components and htmx attributes.
- Use <sl:button> with hx:delete and hx-target to perform server‑side deletes and update the DOM.
- Shadleaf validates component props at render time, catching typos and accessibility errors early.