net.wireservice.component.gallery

wireservice.net

Documentation

Gallery component. An ordered collection of images displayed as a swipeable gallery or grid.

main object

Gallery component. An ordered collection of images displayed as a swipeable gallery or grid.

Properties

hidden boolean Optional

No description available.

identifier string Optional

No description available.

maxLength: 256 bytes
layout string Optional

No description available.

maxLength: 256 bytes
role string Optional

Display mode for the gallery.

maxLength: 64 bytes
Known values: gallery, mosaic
style string Optional

No description available.

maxLength: 256 bytes
View raw schema
{
  "description": "Gallery component. An ordered collection of images displayed as a swipeable gallery or grid.",
  "properties": {
    "hidden": {
      "type": "boolean"
    },
    "identifier": {
      "maxLength": 256,
      "type": "string"
    },
    "items": {
      "description": "Gallery images.",
      "items": {
        "ref": "#galleryItem",
        "type": "ref"
      },
      "type": "array"
    },
    "layout": {
      "maxLength": 256,
      "type": "string"
    },
    "role": {
      "description": "Display mode for the gallery.",
      "knownValues": [
        "gallery",
        "mosaic"
      ],
      "maxLength": 64,
      "type": "string"
    },
    "style": {
      "maxLength": 256,
      "type": "string"
    }
  },
  "required": [
    "items"
  ],
  "type": "object"
}
galleryItem object

A single item within a gallery.

Properties

accessibilityCaption string Optional

No description available.

maxLength: 20000 bytesmaxGraphemes: 2000 graphemes
explicitContent boolean Optional

No description available.

image blob Optional

No description available.

maxSize: 5.0 MB
url string uri Optional

External URL for the image.

View raw schema
{
  "description": "A single item within a gallery.",
  "properties": {
    "accessibilityCaption": {
      "maxGraphemes": 2000,
      "maxLength": 20000,
      "type": "string"
    },
    "aspectRatio": {
      "ref": "net.wireservice.defs#aspectRatio",
      "type": "ref"
    },
    "caption": {
      "description": "Visible caption as an array of text runs with optional formatting marks.",
      "items": {
        "ref": "net.wireservice.defs#textRun",
        "type": "ref"
      },
      "type": "array"
    },
    "explicitContent": {
      "type": "boolean"
    },
    "image": {
      "accept": [
        "image/jpeg",
        "image/png",
        "image/webp",
        "image/gif"
      ],
      "maxSize": 5000000,
      "type": "blob"
    },
    "url": {
      "description": "External URL for the image.",
      "format": "uri",
      "type": "string"
    }
  },
  "required": [
    "aspectRatio"
  ],
  "type": "object"
}

Lexicon Garden

@