Develop ultra fast with Prismane 🎉

Drawer API

Learn about the Drawer component's props and CSS classes.

Import

import {
  DrawerProps,
  DrawerHeaderProps,
  DrawerFooterProps,
} from "@prismane/core";

Props

Drawer

Drawer extends Paper and Animation component's props.

NameTypeDescriptionDefault
openbooleanTriggers the open state of the dialog.false
closablebooleanTriggers the closable state of the dialog.-
onClose() => voidCallback that will be executed on closing the dialog.() =>
sizePrismaneBreakpoints / string / numberThe size of the drawer.base
positionright / left / top / bottomThe position of the drawer.left

Drawer.Header

Drawer.Header extends Flex component's props.

Drawer.Footer

Drawer.Footer extends Flex component's props.

CSS

Drawer

Drawer extends Paper and Animation components' CSS classes.

RuleGlobal ClassDescription
root.PrismaneDrawer-rootThe wrapper box of the drawer.
root.PrismaneDrawer-root-openThe wrapper box of the drawer based on the open state.

Drawer.Header

Drawer.Header extends Flex component's CSS classes.

RuleGlobal ClassDescription
root.PrismaneDrawerHeader-rootThe wrapper box of the drawer's header component.

Drawer.Footer

Drawer.Footer extends Flex component's CSS classes.

RuleGlobal ClassDescription
root.PrismaneDrawerFooter-rootThe wrapper box of the drawer's footer component.