Skip to content

scalekit-developers/shared-ui-for-examples

Repository files navigation


Shared UI Components for Scalekit Examples

React TypeScript License: MIT

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.

🎨 What's Included

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

🚀 Quick Start

Installation

# 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

Development

# Start the development server
npm start

# Run tests
npm test

# Build for production
npm run build

📁 Component Structure

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

🔧 Available Components

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

🔗 Integration with Example Apps

This shared UI library is used by:

🎯 Features Demonstrated

  • 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

🔗 Helpful Links

📖 Quickstart Guides

📚 Documentation & Reference

🤝 Contributing

We welcome contributions! Please:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/new-component)
  3. Follow the existing component patterns
  4. Add tests for new components
  5. Submit a Pull Request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Shared React components for Scalekit examples - reusable UI elements and utilities

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •