CG Elements
A browser SDK packed with rich UI components to design an insurance offer experience that matches your site and helps drive conversion.
Overview
You request an offer from your backend. You pass the response to the SDK. The SDK builds the offer panel, applies your brand, and tells your code when the customer makes a choice.
Background
An offer panel needs the right layout, the right copy, and the right legal text. The panel also needs your brand and a correct price. A custom build of all these parts takes time and needs regular updates.
CG Elements moves this work into one SDK. Your team writes a small amount of code. Cover Genius owns the panel.
Layout comes with the offer: The offer response carries a presentation field. This field tells the SDK which layout to show and which theme to apply. The SDK ships every layout that the field can name. You do not write markup for the panel. You do not map response fields to UI parts.
Your brand, your page: The SDK applies the colors and sizes that you agree with Cover Genius. The panel inherits the typeface of your page. The panel keeps its styles inside a shadow root, so your page styles do not break it.
Safe by design: The SDK shows the legal disclaimer from the response. It builds the disclaimer from an allowed set of elements, so the SDK never inserts raw HTML from the response.
Semantic events: The SDK sends three events to your code: ready, change, and error. You never listen to DOM events inside the panel.
What you build
Request the offer from the Offers API
You (backend)
Pass the response to the browser
You
Add <cg-elements> and call render()
You (frontend)
Choose the layout, copy, and legal text
Cover Genius
Agree the theme values
You and Cover Genius
Draw the panel and handle interaction
The SDK
Confirm the offer and book
You (backend)
Where to go next
Last updated
Was this helpful?

