div-cloud-background

Cloud text background. Lines draws a rectangular background with the specified color and rounded corners.

Parameters

Parameters Description
color

string

Required parameter.

Fill color.

Valid formats: #RGB, #ARGB, #RRGGBB, #AARRGGBB.

Available platforms: Android, web.

corner_radius

int

Required parameter.

Corner rounding radius.

Restriction for the value x: x >= 0.

Available platforms: Android, web.

type

string

Required parameter.

The value must always be cloud.

Available platforms: Android, web.

paddings

object

Margins between line bounds and background.

The value has the type div-edge-insets.

Available platforms: Android, web.

JSON
{
  type*: "cloud",
  color*: "string",
  corner_radius*: "int",
  paddings: {
    bottom: "int",
    end: "int",
    left: "int",
    right: "int",
    start: "int",
    top: "int",
    unit: "string"
  }
}