Skip to content

Commit 93a295c

Browse files
feat(drawer): Expose isVertical as part of the state
1 parent 6733946 commit 93a295c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/src/components/drawer/drawer.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,10 @@ export interface DrawerState extends DrawerCommonPropsAndState {
222222
* Flag to show whether the drawer is fully hidden.
223223
*/
224224
hidden: boolean;
225+
/**
226+
* Flag to show whether the drawer is vertically positioned.
227+
*/
228+
isVertical: boolean;
225229
}
226230

227231
/**
@@ -569,6 +573,7 @@ export const createDrawer: WidgetFactory<DrawerWidget> = createWidgetFactory('dr
569573
visible$,
570574
backdropHidden$,
571575
hidden$,
576+
isVertical$,
572577
}),
573578
patch,
574579
api: {

0 commit comments

Comments
 (0)