CrossUI Kit Examples
CrossUI Kit Examples
This directory contains example applications showcasing the CrossUI Kit components and theme system across different platforms.
Available Examples
Web Examples
-
React + Vite Example
pnpm example:react
A React application built with Vite showcasing CrossUI Kit components with TypeScript support.
-
Next.js Example
pnpm example:next
A Next.js application demonstrating SSR compatibility and theme system integration.
Native Examples
-
Android (Kotlin) Example Located in
kotlin-app/
. Follow the README in the directory for setup instructions. -
iOS (Swift) Example Located in
swift-app/
. Follow the README in the directory for setup instructions.
Running Examples
-
First, ensure you’ve built the core package:
pnpm build
-
Install dependencies in the example you want to run:
cd examples/<example-directory> pnpm install
-
Start the development server using the corresponding script from the root:
# For React example pnpm example:react # For Next.js example pnpm example:next
Example Features
Each example demonstrates:
- Theme customization
- Dark mode support
- Responsive design
- Component composition
- Platform-specific optimizations
Contributing
Feel free to add more examples or improve existing ones. Make sure to:
- Follow the existing project structure
- Include proper documentation
- Add relevant tests
- Update this README when adding new examples