Display

Display, visibility, overflow, pointer-events, and user-select utility classes.

Display

sui-d-block
Block element (fills width)
sui-d-inline
Inline A Inline B Inline C
sui-d-inline-block
Inline-Block A
Inline-Block B
sui-d-flex
Flex 1
Flex 2
Flex 3
sui-d-inline-flex
A
B
← inline-flex sits inline with text
sui-d-grid
1
2
3
sui-d-none
Visible
Hidden (d-none)
← a hidden element exists here but is not rendered
<div class="sui-d-block">Block element</div>
<span class="sui-d-inline">Inline element</span>
<div class="sui-d-inline-block">Inline-block element</div>
<div class="sui-d-flex">Flex container</div>
<div class="sui-d-inline-flex">Inline flex container</div>
<div class="sui-d-grid">Grid container</div>
<div class="sui-d-none">Hidden element</div>

Visibility

sui-visible vs sui-invisible
Visible
Invisible
Visible
The middle box is invisible but still takes up space (unlike d-none)
sui-sr-only — visually hidden, accessible to screen readers
Visible label
This text is only for screen readers ← screen-reader-only text exists here
<!-- visibility: visible -->
<div class="sui-visible">Visible element</div>

<!-- visibility: hidden (still takes up space) -->
<div class="sui-invisible">Invisible element</div>

<!-- Visually hidden, accessible to screen readers -->
<span class="sui-sr-only">Screen reader only text</span>

Overflow

sui-overflow-hidden
This container has overflow-hidden. The text below is clipped and not visible. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.
sui-overflow-auto
This container has overflow-auto. A scrollbar appears when needed. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.
sui-overflow-visible
This container has overflow-visible. Content overflows and is visible outside the box boundaries. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
sui-overflow-x-auto
This is a very long line of text that extends beyond the container width to demonstrate horizontal scrolling with sui-overflow-x-auto. It keeps going and going to ensure it overflows.
<div class="sui-overflow-hidden">Content is clipped</div>
<div class="sui-overflow-auto">Scrollbar when needed</div>
<div class="sui-overflow-visible">Content overflows visibly</div>
<div class="sui-overflow-x-auto">Horizontal scroll</div>
<div class="sui-overflow-y-auto">Vertical scroll</div>
<div class="sui-overflow-x-hidden">Clip horizontal overflow</div>
<div class="sui-overflow-y-hidden">Clip vertical overflow</div>

Pointer Events

sui-pointer-events-auto Click me (works)
sui-pointer-events-none Click me (disabled)
<!-- Element responds to pointer events (default) -->
<div class="sui-pointer-events-auto">Clickable</div>

<!-- Element ignores all pointer events -->
<div class="sui-pointer-events-none">Not clickable</div>

User Select

sui-select-none — text cannot be selected
Try selecting this text — you cannot select it.
sui-select-text — text can be selected (default behavior)
Try selecting this text — normal selection works.
sui-select-all — all text is selected on click
Click anywhere on this text and all of it is selected at once.
<!-- Prevent text selection -->
<div class="sui-select-none">Cannot select this text</div>

<!-- Allow text selection (default) -->
<div class="sui-select-text">Selectable text</div>

<!-- Select all text on click -->
<div class="sui-select-all">Click to select all</div>

Delete this item?

This action cannot be undone. This will permanently delete the item and remove all associated data.