# Structure content

Learn how to define content for structures and unions.

This content type defines structured data such as maps, elements, and sections for [structure schemas](/reference/content/schema/types/structure) and [union schemas](/reference/content/schema/types/union).

## Examples

Here are some examples of content definitions for structures:

**Structure**

```pmsjson
{
  "type": "structure",
  "attributes": {
    "heading": {
      "type": "text",
      "value": {
        "type": "static",
        "value": "Sign up for free"
      }
    },
    "subheading": {
      "type": "text",
      "value": {
        "type": "static",
        "value": "It only takes a few seconds."
      }
    }
  }
}
```

**Union**

```pmsjson
{
  "type": "structure",
  "name": "text-hero",
  "attributes": {
    "heading": {
      "type": "text",
      "value": {
        "type": "static",
        "value": "Sign up for free"
      }
    },
    "subheading": {
      "type": "text",
      "value": {
        "type": "dynamic",
        "value": "No credit card required."
      }
    }
  }
}
```

## Properties

The following list describes the supported properties:

- `type`: `string`

  The type of the value. Always `structure` for structures.

- `name`: `string` (optional)

  The name of the union variant as defined in the key of the [union schema](/reference/content/schema/types/union#types-prop).

- `attributes`: `Record<string, ContentDefinition>` (see [ContentDefinition](./))

  The attributes of the structure, where the keys are the attribute names and the values are the corresponding [content definitions](/reference/content/definition/types).
