Skip to main content

Options

The following options are available for each avatar style.

seed

Seed

Alias: s

Default: undefined

Type: string

dataUri

Data URI

Default: false

Type: boolean

radius

Radius

Alias: r

Default: 0

Type: integer

Minimum: 0

Maximum: 50

width

Width

Alias: w

Default: undefined

Type: integer

Minimum: 1

height

Height

Alias: h

Default: undefined

Type: integer

Minimum: 1

margin

Margin

Alias: m

Default: 0

Type: integer

Minimum: 0

Maximum: 25

backgroundColor

Background Color

Alias: b

Default: transparent

Type: string

Pattern: ^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})+$

or

Type: string

Enum: transparent

The avatar styles may offer additional options. You can find them in the avatar style documentation.