Span pending = new Span("Pending"); pending.getElement().getThemeList().add("badge pill"); Span confirmed = new Span("Confirmed"); confirmed.getElement().getThemeList().add("badge success pill"); Span denied = new Span("Denied"); denied.getElement().getThemeList().add("badge error pill"); Span onHold = new Span("On hold"); onHold.getElement().getThemeList().add("badge contrast pill");
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter