Prerequisites
- A connected customer.
- A container element in your UI where you render frames.
Choose the right UI surface
- Web: Render co-branded frames in a modal or sheet and keep the rest of your UI visible behind it.
- Mobile: Present co-branded frames in a full-screen route or full sheet. This reduces layout issues when the frame navigates between steps.
Control light and dark appearance
The connect frame supports atheme parameter. Use it to force dark or light instead of relying on the user’s system appearance.
If you use the SDK, pass theme when you initialize the connect flow:
Set appearance example
theme in the query string:
Example URL
If you omit
theme, the frame uses the user’s system preference.Practical customization tips
- Avoid resizing containers mid-flow: Use a stable container size while the frame is mounted to prevent content jumps.
- Show clear loading states: If you wait for a frame’s
readyevent, keep your UI responsive and show a spinner/skeleton. - Plan for errors: If a frame dispatches an
errorevent, show a developer-friendly fallback (retry, exit, or contact support).