1.0.16 • Published 2 years ago

@tmnrp/react-sidebar v1.0.16

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@tmnrp/react-sidebar

@tmnrp/react-sidebar is a lightweight latest treanding markup to display the sidebar with menu items.

Features

  • Render progressbar with configurable maxWidth and minWidth
  • Smooth transition during expand and collapes.

Examples link

https://tmnrp.github.io/react-lib/

Installation link

$ npm i @tmnrp/react-sidebar

Properties

@tmnrp/react-sidebar is currently extended with the following properties.

PropertiestypeDescription
maxWidthnumberMax width after sidebar expand
maxWidthnumberMin width after sidebar expand

Implementation

import { ReactSidebar, ReactSidebarItemProps } from '../.';
import { ReactMaterialIcons, ICON_TYPES } from '@tmnrp/react-material-icons';
const App = () => {
  return (
    <div>
      <ReactSidebar defaultIsExpanded={true} sidebarItems={SIDEBAR_ITEMS} />
    </div>
  );
};
const SIDEBAR_ITEMS: ReactSidebarItemProps[] = [
  {
    name: 'settings',
    label: 'Settings',
    icon: (
      <ReactMaterialIcons iconName="settings" iconType={ICON_TYPES.filled} />
    ),
  },
  {
    name: 'home',
    label: 'home',
    icon: <ReactMaterialIcons iconName="home" iconType={ICON_TYPES.filled} />,
  },
  {
    name: 'language',
    label: 'language',
    icon: (
      <ReactMaterialIcons iconName="language" iconType={ICON_TYPES.filled} />
    ),
  },
];

Todos

  • Let me know :-)

License

MIT Tony Martin

1.0.2

2 years ago

1.0.1

2 years ago

1.0.16

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago