Documentation Index
Fetch the complete documentation index at: https://gusto-preview.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
How the Component Adapter Works
- You create mappings that connect the SDK props to your UI components
-
You provide these mappings to either:
GustoProvider(recommended): Includes default React Aria components and allows overriding specific onesGustoProviderCustomUIAdapter: For complete UI control without React Aria dependencies
- Your custom components are used by the SDK instead of the default components
Choosing a Provider
The SDK offers two providers for different use cases:GustoProvider (Recommended)
- Includes React Aria default components out of the box
- Allows overriding specific components while keeping defaults for others
- Best choice for most applications
- Simpler to implement when you only need to customize some components
GustoProviderCustomUIAdapter
- Requires implementing all needed components
- No React Aria dependencies included
- Better for tree-shaking and bundle size optimization
- Ideal when you need complete control over the UI implementation
Default Components
The SDK provides a set of default components implemented with React Aria for accessibility. These are used when no custom components are provided. You can view the default implementations here:Benefits
This architecture provides several key benefits:- Consistent look and feel: Your entire application can use a consistent design system
- Framework flexibility: You can use any React-compatible UI framework or library
- Implement once: Once you have implemented your adapters, any SDK features you add down the road will automatically use your provided custom UI for free
Component Adapter FAQ Setting Up Your Component Adapter