Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Living wiki of UI design patterns and best practices built with Fumadocs, Next.js, and Base UI components.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
rules/ux-cognitive-load-reduce.md
1---2title: Minimize Extraneous Cognitive Load3impact: HIGH4tags: ux, cognitive-load, simplicity, noise5---67## Minimize Extraneous Cognitive Load89Remove anything that doesn't help the user complete their task. Decoration, redundant labels, and unnecessary options all add load.1011**Incorrect (extraneous elements):**1213```tsx14function DeleteDialog() {15return (16<dialog>17<Icon name="warning" size={64} />18<h2>Warning!</h2>19<p>Are you absolutely sure you want to delete?</p>20<p>This action is permanent and cannot be undone.</p>21<p>All associated data will be lost forever.</p>22<div>23<button>Cancel</button>24<button>Delete</button>25<button>Learn More</button>26</div>27</dialog>28);29}30```3132**Correct (essential information only):**3334```tsx35function DeleteDialog() {36return (37<dialog>38<h2>Delete this item?</h2>39<p>This can't be undone.</p>40<div>41<button>Cancel</button>42<button>Delete</button>43</div>44</dialog>45);46}47```4849Reference: [Cognitive Load](https://lawsofux.com/cognitive-load/)50