Collections, data and search

Present useful objects, keep secondary actions separate and preserve a readable data alternative.

Find a notebook

  • Field notesNature
  • Garden pathsPlaces
  • Small spacesArchitecture

3 books

View markup
<div class="spec-stack"><div class="spec-fields"><div class="ex-field">
      <label class="ex-label" for="spec-filter">Search reading list</label>
      <input type="search" class="ex-input" id="spec-filter" placeholder="Title or topic"></div>
      <div class="ex-field"><label class="ex-label" for="spec-sort">Order</label>
      <span class="ex-select"><select class="ex-input" id="spec-sort"><option>Title A–Z</option><option>Title Z–A</option></select>
      <span class="ex-select-icon" aria-hidden="true"></span></span></div></div>
      <ul class="spec-book-list" aria-label="Books"><li data-book><strong>Field notes</strong><span>Nature</span></li><li data-book><strong>Garden paths</strong><span>Places</span></li><li data-book><strong>Small spaces</strong><span>Architecture</span></li></ul>
      <p class="spec-status" role="status" data-status>3 books</p></div>

Cards

Group one item with a title, useful detail and one clear action.

Harbour walks

Three quiet routes along the coast.

View routes
  • East pier
  • Ferry steps
  • Lighthouse path
View markup
<div class="atlas-stack" data-ex-recipe="cards">
  <article class="atlas-card" aria-labelledby="atlas-card-title"><div class="atlas-card-band" aria-hidden="true"></div>
    <div class="atlas-card-body"><h3 id="atlas-card-title">Harbour walks</h3>
      <p>Three quiet routes along the coast.</p>
      <details><summary>View routes</summary><ul><li>East pier</li><li>Ferry steps</li><li>Lighthouse path</li></ul></details>
    </div></article>
</div>
Use in a project

Dividers

Use a full-width or inset rule to separate groups of information.

Divider style

Recent notebooks


Archived notebooks

View markup
<div class="atlas-stack" data-ex-recipe="dividers">
  <fieldset class="atlas-fieldset"><legend class="ex-label">Divider style</legend><div class="atlas-radio-options"><label class="ex-selection" for="atlas-divider-width-0"><input class="ex-radio" type="radio" id="atlas-divider-width-0" name="atlas-divider-width" value="Full width" checked> Full width</label><label class="ex-selection" for="atlas-divider-width-1"><input class="ex-radio" type="radio" id="atlas-divider-width-1" name="atlas-divider-width" value="Inset"> Inset</label></div></fieldset>
  <div class="atlas-divider-demo"><p>Recent notebooks</p><hr class="ex-divider"><p>Archived notebooks</p></div>
</div>
Use in a project
Usage and implementation

Full example

Open the full example

Use and alternatives

Use a list for straightforward reading, cards when each object benefits from grouping and a table when column comparison matters. Search and filters should solve an actual retrieval need. A chart supplements the underlying values; it does not replace them.

Anatomy

Rows and cards have meaningful titles, metadata and separate selection/details targets. Tables provide a caption, scoped headers and aria-sort on the currently sorted header. Label search, type filter, page size and pagination controls. Give a horizontally scrollable table region an accessible name.

States and recovery

Distinguish empty collection, no matches, missing metadata and partial data. Clear query, reset filters and change sort deliberately. Clamp page state to the result count; selection state has an explicit lifetime and page-selection scope. Preserve usable content while communicating partial state.

Semantics and focus

Use native checkbox selection and real buttons/links for separate actions. Keep the focused pagination button available with guarded aria-disabled at a boundary. Announce concise settled result changes in one status. Do not wrap the entire table in a live region or make a card’s checkbox compete with a whole-card link.

Responsive and preferences

Table scrolling stays inside its labelled region and works by keyboard. Position that region so absolute visually-hidden text cannot escape to create page overflow. Cards may wrap the heading below the selection target; zero overflow alone does not establish readable words. The SVG chart has the same values in a semantic table.

API and ownership

parseCollectionState and serializeCollectionState bound public query state; filterRows, sortRows and paginateRows transform local data. togglePageSelection/pageSelection define page selection, summarizeTypes produces chart values and resultSummary names the result. These are bounded fictional-data helpers; the product owns remote pagination, permissions, locale matching and persistent selection.

Security and data

Query text is rendered as text. URL filters persist in browser history and may reach hosting logs; do not put private or sensitive values there. A client filter cannot protect private records or counts. JSON export uses the separately documented allowlist, not a dump of row objects.

Acceptance

Test combined query/filter, accent matching decisions, sorting, zero results, missing values, partial data, selection changes, Back/Forward and refresh. Check keyboard horizontal scrolling and chart/table value equality. Actual private search and real user task comprehension remain product acceptance work.