A collection of reusable React UI components designed for Scalekit example applications. These components demonstrate best practices for implementing authentication interfaces in the auth stack for AI apps.
This shared UI library provides:
- Login Components: Pre-built authentication forms
- SSO Integration UI: Enterprise login interfaces
- Profile Management: User profile and settings components
- Agent Authorization: UI for MCP consent flows
- Token Management: Interfaces for managing user tokens
- Modern Design: Clean, responsive components following design system
# Clone as a Git submodule in your project
git submodule add https://github.com/scalekit-developers/shared-ui-for-examples.git
# Or clone directly
git clone https://github.com/scalekit-developers/shared-ui-for-examples.git
cd shared-ui-for-examples
# Install dependencies
npm install
# or
yarn install
# Start the development server
npm start
# Run tests
npm test
# Build for production
npm run build
src/
├── components/
│ ├── auth/ # Authentication components
│ ├── profile/ # User profile components
│ ├── tokens/ # Token management UI
│ ├── common/ # Shared UI elements
│ └── layouts/ # Page layouts
├── hooks/ # Custom React hooks
├── utils/ # Utility functions
└── styles/ # Shared CSS/styling
Component | Description | Usage |
---|---|---|
LoginForm | Enterprise SSO login interface | Authentication flows |
ProfileCard | User profile display | User management |
TokenManager | Token vault interface | Agent authorization |
ConsentFlow | MCP consent workflow | Agent permissions |
OrgSelector | Multi-tenant organization picker | Enterprise features |
This shared UI library is used by:
- Responsive Design: Works across devices and screen sizes
- Accessibility: WCAG compliant components
- Theme Support: Light/dark mode compatibility
- TypeScript: Full type safety and IntelliSense
- Modern React: Hooks, Context API, and functional components
- Performance: Optimized bundle size and loading
- SSO Integration - Implement enterprise Single Sign-on
- Full Stack Auth - Complete authentication solution
- Passwordless Auth - Modern authentication flows
- API Reference - Complete API documentation
- Developer Kit - Tools and utilities
We welcome contributions! Please:
- Fork the repository
- Create a feature branch (
git checkout -b feature/new-component
) - Follow the existing component patterns
- Add tests for new components
- Submit a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.