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-uniform-connectedness.md
1---2title: Visually Connect Related Elements3impact: MEDIUM4tags: ux, connectedness, grouping, visual5---67## Visually Connect Related Elements89Elements that are visually connected (by lines, color, or frames) are perceived as more related.1011**Incorrect (steps with no visual connection):**1213```tsx14function Steps({ current }) {15return (16<div>17<span>Step 1</span>18<span>Step 2</span>19<span>Step 3</span>20</div>21);22}23```2425**Correct (connected with a visual line):**2627```tsx28function Steps({ current }) {29return (30<div className={styles.steps}>31{steps.map((step, i) => (32<div key={step.id} className={styles.step} data-active={i <= current}>33<div className={styles.dot} />34{i < steps.length - 1 && <div className={styles.connector} />}35<span>{step.label}</span>36</div>37))}38</div>39);40}41```4243Reference: [Law of Uniform Connectedness](https://lawsofux.com/law-of-uniform-connectedness/)44