Components Overview
Reusable React components for building AuthScape applications.
AuthScape provides a set of reusable React components for common functionality like image handling, file uploads, API calls, and form inputs.
Available Components
| Component | Description |
|---|---|
| NextImage | Image component with fallback support |
| GoogleMapsAutoComplete | Address autocomplete input |
| FileUploader | File upload with variants |
| ColorPicker | Color selection input |
| API Service Call | API request utilities |
| AutoSaveTextField | Auto-saving text input |
Installation
Components are included in the authscape npm package:
bash
npm install authscape
Usage
Import components from the authscape package:
javascript
import { NextImage, FileUploader, ColorPicker } from 'authscape/components';import { apiService, authService } from 'authscape';
Component Design
All AuthScape components follow these principles:
- MUI Integration - Components work seamlessly with Material-UI
- TypeScript Support - Full type definitions available
- Responsive - Mobile-first responsive design
- Accessible - WCAG 2.1 compliant
- Themeable - Respects MUI theme settings