On this page
Angular Offcanvas Component
Angular Offcanvas component allows to build hidden sidebars into your project for navigation, shopping carts, etc.
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
```typescript import { OffcanvasModule } from '@coreui/angular'; @NgModule({ imports: [OffcanvasModule,] }) export class AppModule() { } ```
| name | description | type | default | version | | ---- | ----------- | ---- | ------- | ------- | | `backdrop` | Apply a backdrop on body while offcanvas is visible. | `boolean \| 'static'` | _true_ | `static`4.3.10+ | `keyboard` | Closes the offcanvas when escape key is pressed. | `boolean` |_true_| | `id` | Html id attr, required for programmatic offcanvas visibility change. | `string` | **required** | | `placement` | Offcanvas placement. | `start` \| `end` \| `top` \| `bottom` |_start_| | `responsive` | Hide the content in an offcanvas below the breakpoint. | `boolean \| sm \| md \| lg \| xl \| xxl` | _true_ |4.3.10+ | `scroll` | Allow body scrolling while offcanvas is open. | `boolean` |_false_| | `visible` | Toggle the offcanvas visibility. | `boolean` |_undefined_| | `role` | Html `role` for an offcanvas. | `string` |_dialog_| | `aria-modal` | Set `aria-modal` html attr for an offcanvas. | `string` |_true_|
##### Outputs| name | description | type | | ---- | ----------- | ---- | | `visibleChange` | Event emitted on `visible` change. | `boolean` |
### c-offcanvas-body _component_ ### c-offcanvas-header _component_ ### cOffcanvasTitle _directive_ ### cOffcanvasToggle _directive_ ##### Inputs| name | description | type | default | | ---- | ----------- | ---- | ------- | | `cOffcanvasToggle` | Html element `id` attr of an offcanvas to dismiss. | `string` | **required** |