Boxes come in two styles default and semantic
Default styles have the following behaviours:
Box styles can either be applied through classes or data attributes. In the event you'd need, for any given component, an elevation context stripped of any predefined spacings or interaction, use data attributes.
First you need to describe which type of wrapper you need to form an elevation context. For boxes, use : [data-scope-wrapper="box"]
.
The available types for now are:
<div class="sds-box -boxInsetLg -boxBordered">
<p>This is a short box text to illustrate how it changes based on the box's background.</p>
</div>
<div class="{{ namespace }}box{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}">
<p>This is a short box text to illustrate how it changes based on the box's background.</p>
</div>