macOS
JS behaviour
Source-list sidebar
Finder’s source list: «Favourites» and «iCloud» sections with small grey headers, icon rows with counts, the blue selected row, and the filter field at the foot.
Real scenarios
The component as it is used in a product — not a specimen grid.
Source-list sidebar
Click a row to select it — the blue row with white text — and type in the filter field to live-filter both sections; the content pane follows the selection.
Important props
| Prop | Type | Default | What it does |
|---|---|---|---|
| row | height | '28px' | Tight 28px rows with 16px colour icons. |
| selection | row | 'system blue' | Selection: a system-blue row with white text. |
| vibrancy | material | 'on' | A translucent backdrop that picks up what is behind the window. |
Snippet
<aside class="mcside">
<h4>موردعلاقهها</h4>
<button class="mcside-row" data-current>📂 پروژهها <b>۲۴</b></button>
<button class="mcside-row">📄 اسناد</button>
</aside>
<style>
.mcside { inline-size: 220px; padding: 8px; background: #ffffff66;
backdrop-filter: blur(20px) saturate(1.6); }
.mcside h4 { font: 700 11px system-ui; color: #7d7d80; padding-inline: 8px; }
.mcside-row { display: flex; gap: 6px; align-items: center; block-size: 28px;
padding-inline: 8px; border-radius: 5px; }
.mcside-row[data-current] { background: #007AFF; color: #fff; }
.mcside-row b { margin-inline-start: auto; font: 500 11px system-ui; }
</style>