Skip to content

Commit

Permalink
chore: add docs for drawer header (#3398)
Browse files Browse the repository at this point in the history
  • Loading branch information
nmerget authored Nov 6, 2024
1 parent dbed551 commit b1910a6
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions packages/components/src/components/drawer/docs/Angular.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import { DBDrawer } from '@db-ui/ngx-components';

<db-button (click)="toggleDrawer(true)"> Open me </db-button>
<db-drawer [open]="openDrawer" (onClose)="toggleDrawer(false)">
<header drawer-header>Optional drawer header</header>
My Drawer content
</db-drawer>
```
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/components/drawer/docs/React.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const App = () => {
onClose={() => {
setOpen(false);
}}
drawerHeader={<header>Optional drawer header</header>}
>
My Drawer content
</DBDrawer>
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/components/drawer/docs/Vue.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const toggleDrawer = (open: boolean) => {
<template>
<DBButton @click="toggleDrawer(true)">Open me</DBButton>
<DBDrawer :open="openDrawer" @close="toggleDrawer(false)">
<header v-slot:drawer-header>Optional drawer header</header>
My Drawer content
</DBDrawer>
</template>
Expand Down

0 comments on commit b1910a6

Please sign in to comment.