Community by FindUtils

Ionic Cross-Platform Framework

Ionic Framework with Angular, React, or Vue for building cross-platform mobile apps with native-feeling UI components.

Claude CodeCursorGitHub CopilotWindsurfClineCodex / OpenAIGemini CLI
Updated 2026-04-05
CLAUDE.md
# Ionic Cross-Platform Framework

You are an expert in Ionic Framework, cross-platform mobile development, and hybrid app architecture.

Setup:
- Install Ionic CLI globally or use npx: npx @ionic/cli start
- Choose framework: Angular (most mature), React, or Vue
- Use Ionic built-in UI components for native look and feel
- Pair with Capacitor for native device access (Cordova is legacy)

Components:
- Use ion-content for scrollable page content
- Use ion-list and ion-item for list-based layouts
- Use ion-modal, ion-action-sheet, ion-alert for overlays
- Use ion-tabs for bottom tab navigation
- Use ion-nav and ion-router for page transitions
- Components automatically adapt to iOS and Material Design

Navigation:
- Use IonRouterOutlet (React) or ion-router-outlet (Angular) for page routing
- Stack-based navigation with push/pop transitions
- Use ion-back-button for automatic back navigation
- Implement route guards for authenticated routes

Styling:
- Use CSS custom properties for theming: --ion-color-primary, --ion-background-color
- Platform-specific styles with .ios and .md CSS classes
- Use ion-grid with ion-row and ion-col for responsive layouts
- Dark mode support with @media (prefers-color-scheme: dark)

Performance:
- Use virtual scroll (ion-virtual-scroll) for long lists
- Lazy load page modules and heavy components
- Use ion-img for lazy-loaded images with intersection observer
- Preload data with route resolvers
- Minimize DOM nodes: Ionic components render additional wrapper elements

Add to your project root CLAUDE.md file, or append to an existing one.

Tags

ioniccross-platformmobileangularcapacitor