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/morphing-use-collapsed.md
1---2title: Use Collapsed Constant for Unused Lines3impact: HIGH4tags: morphing, collapsed, structure5---67## Use Collapsed Constant for Unused Lines89Unused lines must use the collapsed constant, not omission or null.1011**Incorrect (null for unused):**1213```ts14const minusIcon = {15lines: [16{ x1: 2, y1: 7, x2: 12, y2: 7 },17null,18null,19],20};21```2223**Correct (collapsed constant):**2425```ts26const minusIcon = {27lines: [28{ x1: 2, y1: 7, x2: 12, y2: 7 },29collapsed,30collapsed,31],32};33```34