Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 860 Bytes

File metadata and controls

30 lines (25 loc) · 860 Bytes

bootstrap-j2html-extension

This brings the Bootstrap UI kit into the j2html ecosystem.

  • Bootstrap for CSS classes declared in the UI toolkit
  • BootstrapConfig for useful URLs for CDN and Webjar locations
  • BootstrapIcons for CSS classes supporting the Bootstrap Icons
  • BootstrapTagCreator for common templates for Bootstrap components
<dependency>
    <groupId>dev.rebelcraft</groupId>
    <artifactId>bootstrap-j2html-extension</artifactId>
    <version>0.0.3</version>
</dependency>

Usage:

import dev.rebelcraft.j2html.bootstrap.Bootstrap;
import dev.rebelcraft.j2html.ext.aria.AriaRoles;
import static j2html.TagCreator.*;

div()
    .withClasses(Bootstrap.alert, Bootstrap.alert_primary)
    .attr(AriaRoles.roleAlert)
    .with(
      text("A simple primary alert—check it out!")
    )