Schema Explorer

ImageSet

The ImageSet displays a collection of Images similar to a gallery.

Property Type Required Description Version
images Image[] Yes The array of Image elements to show. 1.0
imageSize string No, default: "auto" Controls the approximate size of the image. The physical dimensions will vary per host. Specify "auto" for true image dimension, or "stretch" to force it to fill the container. 1.0
type "ImageSet" Yes Must be "ImageSet". 1.0
id string No A unique identifier associated with the element. 1.0
spacing string No Controls the amount of spacing between this element and the preceding element. 1.0
separator boolean No, default: false When true, draw a separating line at the top of the element. 1.0

Example

{
	"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
	"type": "AdaptiveCard",
	"version": "1.0",
	"body": [
		{
			"type": "ImageSet",
			"images": [
				{
					"type": "Image",
					"url": "http://adaptivecards.io/content/cats/1.png"
				},
				{
					"type": "Image",
					"url": "http://adaptivecards.io/content/cats/1.png"
				},
				{
					"type": "Image",
					"url": "http://adaptivecards.io/content/cats/1.png"
				},
				{
					"type": "Image",
					"url": "http://adaptivecards.io/content/cats/1.png"
				},
				{
					"type": "Image",
					"url": "http://adaptivecards.io/content/cats/1.png"
				},
				{
					"type": "Image",
					"url": "http://adaptivecards.io/content/cats/1.png"
				}
			]
		}
	]
}
{ "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.0", "body": [ { "type": "ImageSet", "images": [ { "type": "Image", "url": "http://adaptivecards.io/content/cats/1.png" }, { "type": "Image", "url": "http://adaptivecards.io/content/cats/1.png" }, { "type": "Image", "url": "http://adaptivecards.io/content/cats/1.png" }, { "type": "Image", "url": "http://adaptivecards.io/content/cats/1.png" }, { "type": "Image", "url": "http://adaptivecards.io/content/cats/1.png" }, { "type": "Image", "url": "http://adaptivecards.io/content/cats/1.png" } ] } ] }
Try it Yourself »

Properties

images

The array of Image elements to show.

  • Type: Image[]
  • Required: Yes

imageSize

Controls the approximate size of the image. The physical dimensions will vary per host. Specify "auto" for true image dimension, or "stretch" to force it to fill the container.

  • Type: string
  • Required: No, default: "auto"
  • Allowed values:
    • "auto"
    • "stretch"
    • "small"
    • "medium"
    • "large"

Example

{
	"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
	"type": "AdaptiveCard",
	"version": "1.0",
	"body": [
		{
			"type": "ImageSet",
			"imageSize": "small",
			"images": [
				{
					"type": "Image",
					"url": "http://adaptivecards.io/content/cats/1.png"
				},
				{
					"type": "Image",
					"url": "http://adaptivecards.io/content/cats/2.png"
				},
				{
					"type": "Image",
					"url": "http://adaptivecards.io/content/cats/3.png"
				},
				{
					"type": "Image",
					"url": "http://adaptivecards.io/content/cats/1.png"
				},
				{
					"type": "Image",
					"url": "http://adaptivecards.io/content/cats/2.png"
				},
				{
					"type": "Image",
					"url": "http://adaptivecards.io/content/cats/3.png"
				}
			]
		}
	]
}
{ "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.0", "body": [ { "type": "ImageSet", "imageSize": "small", "images": [ { "type": "Image", "url": "http://adaptivecards.io/content/cats/1.png" }, { "type": "Image", "url": "http://adaptivecards.io/content/cats/2.png" }, { "type": "Image", "url": "http://adaptivecards.io/content/cats/3.png" }, { "type": "Image", "url": "http://adaptivecards.io/content/cats/1.png" }, { "type": "Image", "url": "http://adaptivecards.io/content/cats/2.png" }, { "type": "Image", "url": "http://adaptivecards.io/content/cats/3.png" } ] } ] }
Try it Yourself »

type

Must be "ImageSet".

  • Type: "ImageSet"
  • Required: Yes
  • Allowed values:
    • ImageSet

id

A unique identifier associated with the element.

  • Type: string
  • Required: No

spacing

Controls the amount of spacing between this element and the preceding element.

  • Type: string
  • Required: No
  • Allowed values:
    • "none"
    • "small"
    • "default"
    • "medium"
    • "large"
    • "extraLarge"
    • "padding"

separator

When true, draw a separating line at the top of the element.

  • Type: boolean
  • Required: No, default: false