Components / Foundations
Visibility
Hide an element everywhere or switch between mobile and desktop presentations at the shared 800px breakpoint.
Desktop presentation. This is hidden at 800px and below.
Mobile presentation. This is hidden at 801px and above.
Hidden everywhere. An element with
is-hidden or hidden is intentionally absent, so this visible note represents it.HTML
<div class="stack"><div class="notification is-info is-hidden-mobile"><strong>Desktop presentation.</strong> This is hidden at 800px and below.</div><div class="notification is-success is-hidden-desktop"><strong>Mobile presentation.</strong> This is hidden at 801px and above.</div><div class="notification is-warning"><strong>Hidden everywhere.</strong> An element with <code>is-hidden</code> or <code>hidden</code> is intentionally absent, so this visible note represents it.</div></div>
Options
| Class or attribute | What it does |
|---|---|
is-hidden / hidden | Hide at every viewport width. Prefer the native hidden attribute for state controlled by JavaScript. |
is-hidden-mobile | Hide at 800px and below. |
is-hidden-desktop | Hide at 801px and above. |