mirror of
https://github.com/sanjeed5/awesome-cursor-rules-mdc.git
synced 2026-11-27 21:22:55 +08:00
14 lines
613 B
Plaintext
14 lines
613 B
Plaintext
---
|
|
description: Enforces specific UI-related guidelines for Jetpack Compose within the presentation layer.
|
|
globs: app/src/main/java/com/package/presentation/**/*.kt
|
|
---
|
|
- Use remember and derivedStateOf appropriately.
|
|
- Implement proper recomposition optimization.
|
|
- Use proper Compose modifiers ordering.
|
|
- Follow composable function naming conventions.
|
|
- Implement proper preview annotations.
|
|
- Use proper state management with MutableState.
|
|
- Implement proper error handling and loading states.
|
|
- Use proper theming with MaterialTheme.
|
|
- Follow accessibility guidelines.
|
|
- Implement proper animation patterns. |