# Reaching other containers

Code reaches a container by its name: `title.text`, `score_label.color`.

- **Top-level containers** (at the left edge of a file) can be reached by name from anywhere in
  the project.
- **A container written inside another** belongs to it. Its parent and its siblings use the plain
  name; everyone else goes through the parent: `form.name_box.text`. So two cards can each have
  their own `title` without a clash.
- A repeated container's copies: `cell.at(1, 2)`, `task_row.at(0)`.

```vi
main home:
  space_inside: 24
  space_between: 12
  children:
    form
    preview

form:
  space_between: 8
  children:
    name_box:
      input: "Type a name"
    save:
      button: "Show it"
      on_tap: preview.text = "Saved: {name_box.text}"

preview:
  text: "Nothing saved yet"
  text_style: 18, gray[700]
  on_tap: preview.text = "Still typing: {form.name_box.text}"
```

Inside `form`, `save` reaches its sibling as `name_box`. `preview` is outside `form`, so it writes
`form.name_box`.
