> ## Documentation Index
> Fetch the complete documentation index at: https://docs.omni.co/llms.txt
> Use this file to discover all available pages before exploring further.

# extends

> Inherit attributes from another view inside of Omni.

The extended view will inherit the attributes of the base or template view. Additional attributes can be added to the extended view, scoping them only to the extended view.

If attributes included in the extended view are also defined in the base view, the values in the extended view will override the values in the base view.

<Accordion icon="video" title="Click for video walkthrough">
  <iframe className="w-full aspect-video rounded-xl" src="https://www.loom.com/embed/e8237b7a096e44f0ba4846b7fc937752" title="Navigating the Omni platform" frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen />
</Accordion>

## Syntax

```yaml theme={null}
extends: [ <view_name> ]
```

## Properties

<ParamField path="extends" type="array">
  The name of the view to extend.
</ParamField>

## Examples

```yaml title="base_view" theme={null}
description: This is a base view
```

In this example, we're extending `base_view` to create a new view, `extended_view`:

```yaml title="extended_view" wrap theme={null}
extends: [ base_view ]
description: This is an extended view from the base view
```

The `description` for `extended_view` will be `This is an extended view from the base view` instead of `base_view`'s `This is a base view`.
