CarConsumptionInfoBanner
A small info trigger that opens a dialog with CO₂/consumption explanation.
Includes the common banner props.
Props
id●required
string
CMS id.
buttonText●required
string
Button label shown next to the info icon.
dialogTitle●required
string
Dialog title.
consumptionDescription●required
string
Dialog body text.
consumptionRating●required
CO2Class
Rating used for the scale.
Example
const banner: CarConsumptionInfoBanner = {
typename: BannerTypename.CarConsumptionInfo,
id: 'b_123',
title: null,
titleTag: 'h2',
titleAlign: 'left',
cssId: null,
cssClasses: null,
buttonText: 'Consumption',
dialogTitle: 'CO₂ Information',
consumptionDescription: 'Details...',
consumptionRating: 'A' as any
};