Skip to content

Code Lab

UI Pattern Atlas Explained: Find the Right React Pattern by Describing It

By Miles Park·
GitHub preview of ydj515/ui-pattern-atlas

CODE LAB · PROJECT SPOTLIGHT

UI Pattern Atlas TypeScript · MIT

Search by Korean or English names and descriptions, test the interaction, and inspect the React implementation.

Preview: GitHub · ydj515/ui-pattern-atlas

UI Pattern Atlas is an interactive catalog for people who know what an interface should do but cannot name the pattern. Search for 아래에서 올라오는 창, meaning “a panel that comes up from below,” and the public site finds Bottom Sheet. You can try the preview, read the accessibility notes, and inspect the component before copying it into a React project. Official live catalog.

Creator’s UI Pattern Atlas demo showing annotated UX pattern cards and a category sidebar
Still from the author’s catalog demo. Category filters and pattern previews help readers compare how an interaction behaves before choosing an implementation. Original project image.

How the catalog matches the words you type

The search code uses normalized text, names, aliases, descriptions, and other descriptive fields. It ranks exact names more highly than a match in the description. It also scores joined phrases, so a spaced query can match a multiword alias. Bottom Sheet supplies a plain-language Korean alias for the movement of the panel. This is transparent text matching that depends on the aliases and descriptions maintained in the catalog. Pinned Bottom Sheet catalog entry.

The source below shows the first step. It applies NFC normalization, converts letters to lowercase, and removes spaces, hyphens, and underscores. That helps the same name match across different spellings.

ydj515 / ui-pattern-atlasTypeScript · source excerpt
TS  src/features/search-patterns/model/searchPatterns.ts
export function normalizeSearchText(value: string): string {  return value    .normalize("NFC")    .toLowerCase()    .replace(/[\s\-_]+/g, "");}
Lines 34–39 · commit f636e65View original on GitHub ↗

Source credit: UI Pattern Atlas contributors. MIT license.

Try one Korean phrase and the live keyboard behavior

We ran the exact normalization function in Node.js. The spaced and unspaced Korean names both returned 바텀시트. The input Bottom-Sheet returned bottomsheet.

On the public catalog, the Korean phrase took us to Bottom Sheet. In its demo we clicked Sort options (정렬 옵션). The dialog opened and focus moved to Close. Escape closed it and returned focus to Sort options. This check covered one path in the live Korean demo. Try the creator’s live Bottom Sheet demo.

Open Bottom Sheet sort-options dialog in the Korean UI Pattern Atlas public demo
Our capture of the public demo. The sort panel appears at the bottom with the original control visible behind it. Creator’s demo page.

Copy the component after trying the demo

The project documents React 19 and Tailwind CSS v4 as the requirements for its reusable code. The Bottom Sheet implementation uses a native dialog. Use the demo’s Code tab to compare the component with the caller. In your own interface, check the trigger label, keyboard dismissal, and focus return after replacing the demo’s sort options. Pinned React implementation.

For an example of documenting a visual workflow for a teammate, see our OpenGame playtest guide.

Discovery source from MINDUNG. Watch the original video on YouTube.

Join the discussion

Your email address will not be published. Required fields are marked *