# Items

The `Items` represent the content of the AppBar. The [`items`](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/appbar/configuration/items) configuration accepts a collection of objects that will be rendered inside the AppBar widget. There are two types of items that developers can choose from:

* [Content Items](https://www.telerik.com/kendo-jquery-ui/documentation/controls/appbar/items#content-items)
* [Spacer](https://www.telerik.com/kendo-jquery-ui/documentation/controls/appbar/items#spacer)

## Content Items

There are two approaches to using templates with **Content Items**:

* You can use the `template` option exposed by `contentItem` to consume and render HTML.
* You can supply an evaluated `kendo.template` to the configuration.

The following example shows how to utilize both approaches:

```dojo
    <script id="search-template" type="text/x-kendo-tmpl">
      <span class="k-textbox k-display-flex">
          <input autocomplete="off" placeholder="Search..." title="Search..." class="k-input">
          <span class="k-input-icon">
              <span class="k-icon k-i-search"></span>
          </span>
      </span>
    </script>

    <div id="appbar"></div>

    <script>
      $("#appbar").kendoAppBar({
        items: [
          {
            template: '<a class="k-button" href="\\#"><span class="k-icon k-i-menu"></span></a>',
            type: "contentItem",
          },
          { type: "contentItem", template: "Kendo UI for jQuery AppBar" },
          { type: "spacer" },
          {
            template: kendo.template($("#search-template").html()),
            type: "contentItem",
          },
        ],
      });
      kendo.ui.icon($(".k-i-menu"), "menu");
      kendo.ui.icon($(".k-i-search"), "search");
    </script>
```

## Spacer

The `spacer` item could be utilized to easily separate the content items from one another.

```dojo
    <div id="appbar"></div>

    <script>
      $("#appbar").kendoAppBar({
        items: [
          {
            template: '<a class="k-button" href="\\#"><span class="k-icon k-i-menu"></span></a>',
            type: "contentItem",
          },

          { width: 50, type: "spacer" },
          {
            template: "<h3>Kendo UI for jQuery AppBar</h3>",
            type: "contentItem",
          },
          { type: "spacer" },
          { type: "contentItem", template: "About Us"}
        ],
      });

      kendo.ui.icon($(".k-i-menu"), "menu");
    </script>
```

## See Also

* [Overview of the AppBar (Demo)](https://demos.telerik.com/kendo-ui/appbar/index)
* [JavaScript API Reference of the AppBar](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/appbar)
