Customization
Registry components become part of your application after installation. You can change their markup, styling, copy, routing, and composition without forking an npm package.What to customize
- Tailwind classes and responsive layout
- Headings, helper text, empty states, and loading states
- Routing in
onManageLoanandonTrackLoan - Wallet connection and disconnection controls
- Placement of the platform wallet address
- Success callbacks and application notifications
Keep SDK operations centralized
UseBorrowProvider as the owner of the BorrowSDK instance. Components can access it through the installed context:
Preserve workflow safeguards
When changing transaction components, retain:- Loading and duplicate-submission guards
- Live loan-position refreshes
- Minimum amount and maximum-withdrawable validation
- Fully repaid loan checks
- Workflow completion and error handling