The b.Block
constructor returns a container that ensures siblings have a consistent margin.
The b.Block
constructor returns a container that ensures siblings have a consistent margin.
b.Block("This text is within a ", e.Strong("block"), "."), b.Block("This text is within a ", e.Strong("second block"), ". Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean efficitur sit amet massa fringilla egestas. Nullam condimentum luctus turpis."), b.Block("This text is within a ", e.Strong("third block"), ". This block has no margin at the bottom.")
<div class="block">This text is within a <strong>block</strong>.</div> <div class="block">This text is within a <strong>second block</strong>. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean efficitur sit amet massa fringilla egestas. Nullam condimentum luctus turpis.</div> <div class="block">This text is within a <strong>third block</strong>. This block has no margin at the bottom.</div>
e.Div("This text is ", e.Em("not"), " within a ", e.Strong("block"), "."), e.Div("This text ", e.Em("isn't"), " within a ", e.Strong("block"), " either. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean efficitur sit amet massa fringilla egestas. Nullam condimentum luctus turpis."), e.Div("This text is also ", e.Em("not"), " within a ", e.Strong("block"), ".")
<div>This text is <em>not</em> within a <strong>block</strong>.</div> <div>This text <em>isn't</em> within a <strong>block</strong> either. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean efficitur sit amet massa fringilla egestas. Nullam condimentum luctus turpis.</div> <div>This text is also <em>not</em> within a <strong>block</strong>.</div>