Check Grid¶
Checkboxes laid out in as many columns as fit.
Decision¶
| When | Use |
|---|---|
| A longer set of independent options, such as artwork types | Check Grid |
| A short set | Toggle Group |
Usage¶
<div class="stolon-check-grid">
<label class="emby-checkbox-label"><input type="checkbox" is="emby-checkbox"><span class="checkboxLabel">Poster</span></label>
<label class="emby-checkbox-label"><input type="checkbox" is="emby-checkbox"><span class="checkboxLabel">Backdrop</span></label>
</div>
Class: stolon-check-grid.
States and Modifiers¶
- The grid uses
repeat(auto-fill, minmax(10em, 1fr)), so it falls to one or two columns at 375px.
Reference¶
Generated from the code by scripts/build-docs.mjs. Edit the code, not this section.
| Class | What it looks like |
|---|---|
stolon-check-grid |
Checkboxes laid out in as many columns as fit |
Example¶
Example Code¶
<!-- title: Check Grid -->
<div class="stolon-check-grid">
<label class="emby-checkbox-label"><input type="checkbox" is="emby-checkbox" checked><span class="checkboxLabel">Poster</span></label>
<label class="emby-checkbox-label"><input type="checkbox" is="emby-checkbox"><span class="checkboxLabel">Backdrop</span></label>
<label class="emby-checkbox-label"><input type="checkbox" is="emby-checkbox"><span class="checkboxLabel">Logo</span></label>
<label class="emby-checkbox-label"><input type="checkbox" is="emby-checkbox"><span class="checkboxLabel">Banner</span></label>
<label class="emby-checkbox-label"><input type="checkbox" is="emby-checkbox"><span class="checkboxLabel">Thumb</span></label>
<label class="emby-checkbox-label"><input type="checkbox" is="emby-checkbox"><span class="checkboxLabel">Disc</span></label>
</div>