# Templates

The ActionSheet component contains the following building blocks:

* `Header`—Rendered on top of the content. By default, it includes a [`title`](https://www.telerik.com/kendo-angular-ui-develop/components/navigation/api/actionsheetcomponent#title) and a [`subtitle`](https://www.telerik.com/kendo-angular-ui-develop/components/navigation/api/actionsheetcomponent#subtitle).
* `Content`—Renders the main content area of the ActionSheet. By default, it contains a list of items that could be optionally split in two groups. The content can be completely customized.
* `Footer`—Rendered below the content if an [`ActionSheetFooterTemplate`](https://www.telerik.com/kendo-angular-ui-develop/components/navigation/api/actionsheetfootertemplatedirective) is provided.

The ActionSheet allows you to use templates to customize the appearance of its building blocks.

To define a template, nest an `<ng-template>` tag inside the `<kendo-actionsheet>` tag and apply one of the following directives to it:

* `kendoActionSheetItemTemplate`—Specifies the list items content, when an [`items`](https://www.telerik.com/kendo-angular-ui-develop/components/navigation/api/actionsheetcomponent#items) collection is provided.
* `kendoActionSheetHeaderTemplate`—Specifies the header section of the ActionSheet.
* `kendoActionSheetContentTemplate`—Overrides the `Content` building block section.
* `kendoActionSheetFooterTemplate`—Specifies the footer area of the ActionSheet.
* `kendoActionSheetTemplate`—Overrides all building blocks of the component.

## Item Template

When the ActionSheet renders an [`items`](https://www.telerik.com/kendo-angular-ui-develop/components/navigation/api/actionsheetcomponent#items) collection, you could use the [`ActionSheetItemTemplate`](https://www.telerik.com/kendo-angular-ui-develop/components/navigation/api/actionsheetitemtemplatedirective) directive and gain full control over the appearance of each item. To access a reference to the current item, use the `item` field passed by the template:

```html
<kendo-actionsheet *ngIf="opened" [items]="items">
    <ng-template kendoActionSheetItemTemplate let-item>
        <p>{{item.title}}</p>
    </ng-template>
</kendo-actionsheet>
```

The following example demonstrates the `ActionSheetItemTemplate` in action.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/navigation/actionsheet/templates/item/source.txt)

## Header Template

Use the [`ActionSheetHeaderTemplate`](https://www.telerik.com/kendo-angular-ui-develop/components/navigation/api/actionsheetheadertemplatedirective) directive to customize the header section of the ActionSheet.

> The `kendoActionSheetHeaderTemplate` directive overrides the ActionSheet `title` and `subtitle` options.

The following example demonstrates the `ActionSheetHeaderTemplate` in action.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/navigation/actionsheet/templates/title/source.txt)

## Content Template

The [`ActionSheetContentTemplate`](https://www.telerik.com/kendo-angular-ui-develop/components/navigation/api/actionsheetcontenttemplatedirective) directive allows you to completely customize the main content area of the ActionSheet. This enables you to render custom content even when an [`items`](https://www.telerik.com/kendo-angular-ui-develop/components/navigation/api/actionsheetcomponent#items) collection is not provided.

The following example demonstrates the `ActionSheetContentTemplate` in action.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/navigation/actionsheet/templates/content/source.txt)

## Footer Template

Use the [`ActionSheetFooterTemplate`](https://www.telerik.com/kendo-angular-ui-develop/components/navigation/api/actionsheetfootertemplatedirective) directive to render a footer below the `Content` ActionSheet area.

The following example demonstrates the `ActionSheetFooterTemplate` in action.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/navigation/actionsheet/templates/footer/source.txt)

## ActionSheet Template

Use the [`ActionSheetTemplate`](https://www.telerik.com/kendo-angular-ui-develop/components/navigation/api/actionsheettemplatedirective) directive to display custom content inside the ActionSheet.

> When the `kendoActionSheetTemplate` directive is used, only the contents inside its `ng-template` element will be displayed. All other template directives will be ignored.

The following example demonstrates the `ActionSheetTemplate` in action.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/navigation/actionsheet/templates/actionsheet/source.txt)

## Suggested Links

* [API Reference of the ActionSheet](https://www.telerik.com/kendo-angular-ui-develop/components/navigation/api/actionsheetcomponent)
* [API Reference of the ActionSheetItem](https://www.telerik.com/kendo-angular-ui-develop/components/navigation/api/actionsheetitem)
