Skip to content

Type Alias: BackgroundOption ​

BackgroundOption = BackgroundProps | Color

What a background option accepts: a BackgroundProps object, or a bare Color as shorthand for a solid background in that colour — the same shorthand every other fill site takes (see FillOption).

Example ​

ts
background: 'FF3399' // shorthand for { color: 'FF3399' }