1.2.6 • Published 9 months ago

@parsimap/mui-persistent-drawer v1.2.6

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Mui Persistent Drawer

Arguments

titletypedefaultdescription
openTitlestringundefineda title when drawer is need to opened
closeTitlestringundefineda title when drawer is need to closed
widthnumberundefinedto define width to drawer

Optional Arguments

titletypedefaultdescription
scrollbooleanfalseto have scroll in drawer
rightnumberundefinedto move drawer to left
topnumberundefinedto move drawer to bottom
onOpenChangefunctionundefinedrecognize when the drawer state change
toggleButtonPropsButtonPropsundefinedchange the toggle button style

Changelog

Version: 1.0.9

  • The direction issues were resolved and completely supported ltr as well as rtl direction.

Version: 1.0.5

  • The right property was added to a component to adapt that with another component on the right side of the main layout.
  • The problem of is taken away button on page while parent own any position was resolved.
  • The top property was added to a component.

version: 1.0.6

  • The package name is renamed from mui-persistent-drawer to mui-persistent-drawer and corrected in the project.

version 1.0.8

  • The documentation is rewrite in the case of separation the optional and required arguments.
  • Add the ability to customizing title of the toggle button when it is opened or closed.

Usage

import MuiPersistentDrawer from '@parsimap/mui-persistent-drawer';

const App = () => {
  function handleOpenChange(state: boolean) {
    if (state) {
      // Drawer is opend 
    }
  }

  return (
    <MuiPersistentDrawer
      width={400}
      openTitle={"Close Details"}
      closeTitle={"Open Details"}
      onOpenChange={handleOpenChange}
    />
  )
}

export default App;
1.2.0

9 months ago

1.1.9

9 months ago

1.1.8

11 months ago

1.2.6

9 months ago

1.1.7

11 months ago

1.2.5

9 months ago

1.1.6

11 months ago

1.2.4

9 months ago

1.2.3

9 months ago

1.2.2

9 months ago

1.2.1

9 months ago

1.1.1

11 months ago

1.1.0

11 months ago

1.0.9

11 months ago

1.1.5

11 months ago

1.1.4

11 months ago

1.1.3

11 months ago

1.1.2

11 months ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago