Change appearance - Additional settings - Mercado Pago Developers

Change appearance

Client-Side

Style properties

-Description
Customization momentWhen rendering the Brick
Propertycustomization.visual.{buttonBackground, buttonHeight, borderRadius, valuePropColor, verticalPadding, horizontalPadding}
TypeString
CommentsWhen sending an empty property, the screen will present the text defined by the default layout. On the other hand, when you submit a custom value, it will replace the default value. To check what the default values are, check out the table below.
KeyAvailable optionsDefaultComments
buttonBackgrounddefault, black, blue, whitedefault-
buttonHeight-48pxMinimum: 48px.
Maximum: free choice.
borderRadius-6px-
valuePropColorgrey, whitegrey-
verticalPadding-16pxMinimum: 16px.
Maximum: free choice.
horizontalPadding-0pxMinimum: 0px.
Maximum: free choice.

javascript

const settings = {
    ...,
    customization: {
         visual: {
             buttonBackground: 'black',
             borderRadius: '16px',
         },
    },
}

Hide value proposition text

-Description
Customization momentWhen rendering the Brick
Propertycustomization.visual.hideValueProp
TypeBoolean
CommentsWhen true, hides the value proposition text (below the button).

javascript

const settings = {
    ...,
    customization: {
         visual: {
             hideValueProp: true
         },
    },
}