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-common-region-boundaries.md
1---2title: Use Boundaries to Group Related Content3impact: MEDIUM4tags: ux, common-region, boundaries, grouping5---67## Use Boundaries to Group Related Content89Elements sharing a clearly defined boundary are perceived as a group.1011**Incorrect (flat list with no visual grouping):**1213```tsx14function Settings() {15return (16<div>17<Toggle label="Dark mode" />18<Toggle label="Notifications" />19<Input label="Email" />20<Input label="Password" />21</div>22);23}24```2526**Correct (bounded sections):**2728```tsx29function Settings() {30return (31<div>32<section className={styles.group}>33<h3>Appearance</h3>34<Toggle label="Dark mode" />35</section>36<section className={styles.group}>37<h3>Notifications</h3>38<Toggle label="Notifications" />39</section>40<section className={styles.group}>41<h3>Account</h3>42<Input label="Email" />43<Input label="Password" />44</section>45</div>46);47}48```4950Reference: [Law of Common Region](https://lawsofux.com/law-of-common-region/)51