John Smith @johnsmith 31m
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean efficitur sit amet massa fringilla egestas. Nullam condimentum luctus turpis.
The b.Box
constructor returns a white box with some padding and a shadow.
The b.Box
constructor returns a white box with some padding and a shadow.
b.Box("I'm in a box.")
<div class="box">I'm in a box.</div>
b.Box( html.FormEl, b.Field( b.Label("Email"), b.Control( b.InputEmail(e.Placeholder("e.g. alex@example.com")), ), ), b.Field( b.Label("Password"), b.Control( b.InputPassword(e.Placeholder("********")), ), ), b.Button(b.Primary, "Sign in"), )
<form class="box"><div class="field"><label class="label">Email</label><div class="control"><input class="input" type="email" placeholder="e.g. alex@example.com"></div></div><div class="field"><label class="label">Password</label><div class="control"><input class="input" type="password" placeholder="********"></div></div><button class="button is-primary">Sign in</button></form>
b.Box( b.Media( b.MediaLeft( b.ImageImg( "https://bulma.io/assets/images/placeholders/128x128.png", b.ImgSq64, b.ImgAlt("Image"), ), ), b.Content( e.P( e.Strong("John Smith"), " ", e.Small("@johnsmith"), " ", e.Small("31m"), e.Br(), "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean efficitur sit amet massa fringilla egestas. Nullam condimentum luctus turpis.", ), ), b.Level( b.Mobile, b.LevelLeft( e.A(e.AriaLabel("reply"), fa.Icon(fa.Solid, "reply", b.Small)), e.A(e.AriaLabel("retweet"), fa.Icon(fa.Solid, "retweet", b.Small)), e.A(e.AriaLabel("like"), fa.Icon(fa.Solid, "heart", b.Small)), ), ), ), )
John Smith @johnsmith 31m
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean efficitur sit amet massa fringilla egestas. Nullam condimentum luctus turpis.
<div class="box"><article class="media"><div class="media-left"><figure class="image is-64x64"><img src="https://bulma.io/assets/images/placeholders/128x128.png" alt="Image"></figure></div><div class="media-content"><div class="content"><p><strong>John Smith</strong> <small>@johnsmith</small> <small>31m</small><br>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean efficitur sit amet massa fringilla egestas. Nullam condimentum luctus turpis.</p></div><nav class="level is-mobile"><div class="level-left"><a class="level-item" aria-label="reply"><span class="icon is-small"><i class="fa-reply fa-solid"></i></span></a><a class="level-item" aria-label="retweet"><span class="is-small icon"><i class="fa-retweet fa-solid"></i></span></a><a class="level-item" aria-label="like"><span class="is-small icon"><i class="fa-solid fa-heart"></i></span></a></div></nav></div></article></div>