What are Elements?
Elements are JavaScript components that handle the entire mortgage application and management experience:- Loan Application Element - Complete end-to-end mortgage loan application with pre-approval. Handles all form collection, validation, credit pulls, and pre-approval calculations.
- Borrower Dashboard Element - Full borrower portal for managing in-progress loans, communicating with loan officers, completing tasks, uploading documents, and tracking loan progress through all stages.
Key features
All Elements share these core characteristics:- Secure by design - Sensitive information (SSN, credit scores, income details, bank account numbers) never touches your frontend. Elements communicate directly with Pylon’s API using secure authorization leases, ensuring sensitive data only flows between Pylon’s servers and the Element.
- Fully customizable - Theme and style Elements to match your brand using a comprehensive theming system with three levels of customization (Global, Component, and Page-level).
- Production-ready - Built, tested, and maintained by Pylon. Elements handle edge cases, error states, validation, and all the complexities of mortgage origination workflows.
- Framework-agnostic - Works with React (recommended), Vue, Angular, or vanilla JavaScript. The underlying implementation is framework-independent.
- Compliance-built - Elements handle TRID disclosures, consent management, and other regulatory requirements automatically.
- Responsive - Elements are fully responsive and work seamlessly on desktop, tablet, and mobile devices.
How Elements work
Elements communicate securely with the Pylon API using an authorization lease system. Here’s how it works:- Backend authentication - Your backend authenticates with Pylon using OAuth 2.0 Client Credentials to get an access token.
- Contributor creation - When a user accesses an Element, your backend creates or retrieves a Contributor record in Pylon’s system for that user.
- Lease generation - Your backend requests an authorization lease from Pylon for the Contributor.
- Element rendering - The Element receives the lease and uses it to securely communicate with Pylon’s API, rendering the UI programmatically based on API responses.
- Secure data flow - All sensitive data flows directly between Pylon’s servers and the Element-your frontend never sees SSNs, credit scores, income details, or other sensitive information.
- Your frontend never handles sensitive borrower data
- Elements always have the latest loan information
- The UI is automatically generated based on loan state
- No manual synchronization is required between your app and Pylon
Elements are designed to take up most of the page for optimal display. Avoid displaying other UI elements on the same page to prevent visual conflicts.
Quick start
1
Set up authentication
Configure your backend to handle Pylon authorization requests. This is a one-time setup that all Elements will use.See Handling authentication for details.
2
Choose your Element
Start with the Loan Application Element for new applications, or the Borrower Dashboard Element for managing existing loans.
3
Install and integrate
Install the Elements library and add the component to your app. See the setup guides for each Element.
4
Customize
Optionally customize the theme to match your brand and set up polling to monitor loan status changes.
Installation
Install the Pylon Elements library using npm:The following guides focus on React, which is the recommended approach. If you use another frontend framework (Vue, Angular, or vanilla JavaScript), please reach out to your Pylon Point of Contact. The Pylon platform is flexible and designed to work with many frontend frameworks, but React has the most comprehensive documentation and examples.
When to use Elements vs. the API
Elements are ideal when you want to:- Launch quickly - Get to market faster without building complex mortgage UI components
- Reduce development time - Focus on your core product instead of mortgage-specific features
- Ensure compliance - Let Pylon handle TRID disclosures, consent management, and regulatory requirements
- Maintain consistency - Use proven, tested UI patterns that borrowers are familiar with
- Customize appearance - Match Elements to your brand while keeping the functionality intact
- Complete UI control - Build every aspect of the user interface from scratch
- Custom workflows - Implement non-standard application flows
- Unique integrations - Integrate mortgage features into existing complex workflows
- Full customization - Control every detail of the user experience
Next steps
- Set up authentication - Configure backend auth handling
- Loan Application Element - Build loan applications
- Borrower Dashboard Element - Build borrower portals