net.wireservice.component.gallery
Gallery component. An ordered collection of images displayed as a swipeable gallery or grid.
Details · object
| Kind | object |
|---|---|
| Authority | component.wireservice.net |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"galleryItem": {
"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"
},
"main": {
"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"
}
},
"id": "net.wireservice.component.gallery",
"lexicon": 1
}