Updated to reflect current docs and version 2.4.2
Responsive Visibility works by hiding a certain element (usually a ui container, but can also be e.g. grid rows) on specific screen sizes. For example, <div class="ui container mobile only"> would only be shown when the screen is less than 768px wide.
The documentation for Grid has a Device Visibility section which demonstrates several possible visibility modifiers:
- Mobile (mobile only)
- Tablet (tablet only)
- Tablet and Mobile (tablet mobile only)
- Computer (computer only)
- Large screen (large screen only)
- Widescreen (widescreen only)
- All Sizes (no modifier)
The documentation doesn't explicitly mention what the device breakpoints are. Like most things, they can be configured via SASS variables when building Semantic UI and are defined inside site.variables. The default breakpoints are:
- mobile onlywill only display below 768px
- tablet onlywill only display between 768px - 991px
- computer onlywill always display 992px and above
- large screen onlywill only display between 1200px - 1919px
- widescreen onlywill only display 1920px and above
As seen in the documentation for Grid, it's possible to combine these as well - e.g. tablet mobile only and mobile computer only are perfectly valid.