# `Kotoba.Nodes.Gallery`
[🔗](https://github.com/hattoriai/kotoba/blob/v0.5.0/lib/kotoba/nodes/gallery.ex#L1)

A gallery of images (Lexical type `"gallery"`): attachments shown
together, in a grid.

A gallery is valid only under the root, and holds only
`Kotoba.Nodes.Attachment` nodes, in their order. The editor makes a
gallery of the images uploaded together, and of the images that the
person groups; it makes one image of a gallery with one image.

In HTML, a gallery is a `div.kotoba-gallery` with the `figure` of each
attachment. With the `:untrusted` policy, it is a `p` with the names of
the files. Its text is the names, one a line, and its Markdown the
images, one a line.

# `t`

```elixir
@type t() :: %Kotoba.Nodes.Gallery{
  children: term(),
  direction: term(),
  extra: term(),
  format: term(),
  indent: term(),
  version: term()
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
