Skip to content

API > BackgroundImageFieldType

Type alias: BackgroundImageFieldType

BackgroundImageFieldType: BaseField & { default: { background_position: "TOP_LEFT" | "TOP_CENTER" | "TOP_RIGHT" | "MIDDLE_LEFT" | "MIDDLE_CENTER" | "MIDDLE_RIGHT" | "BOTTOM_LEFT" | "BOTTOM_CENTER" | "BOTTOM_RIGHT"; background_size: "COVER" | "CONTAIN" | "AUTO"; src: string; }; type: "backgroundimage"; }

BackgroundImageFieldType.default

default?: object

default.background_position

background_position?: "TOP_LEFT" | "TOP_CENTER" | "TOP_RIGHT" | "MIDDLE_LEFT" | "MIDDLE_CENTER" | "MIDDLE_RIGHT" | "BOTTOM_LEFT" | "BOTTOM_CENTER" | "BOTTOM_RIGHT"

default.background_size

background_size?: "COVER" | "CONTAIN" | "AUTO"

default.src

src?: string

BackgroundImageFieldType.type

type: "backgroundimage"

Source

fieldTypes.ts:72