diff --git a/AGENTS.md b/AGENTS.md index d284de4..61b2c6b 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -26,12 +26,13 @@ Multiple auto-import systems are active: - ❌ Avoid: `` - ✅ Use: `` with `v-if`/`v-else-if`/`v-else` directives - **In TypeScript/TSX files**: Auto-import does NOT work. You must explicitly import icons using the `~icons/` prefix: + ```tsx import IconMenuRounded from '~icons/material-symbols/menu-rounded'; // Then use in JSX/TSX const menuOption = { - icon: () => + icon: () => , }; ``` @@ -40,6 +41,26 @@ Multiple auto-import systems are active: Project has multiple UI frameworks configured: - **Naive UI** + - **Form Layout**: When using `NGrid` for form layouts, prefer `NFormItemGi` over nesting `NFormItem` inside `NGridItem` for more concise code. + + ```vue + + + + + + + + + + + + + + + + ``` + - **PrimeVue**: ### Styling