Drawer

Creates an easy to use drawer component.

Once imported it can be modified the way you want.

Prefixes

  • ch-drawer
  • ch-drawerTS

Props

Drawer takes the following props:

  • open: boolean
  • toggle?: Dispatch<SetStateAction<boolean&rt;&rt;
  • absolute?: boolean
  • position?: "top" | "bottom" | "right" | "left"
  • children: ReactNode

Example: An example of the usage is provided in the snippet.

Preview