1.0.16 • Published 3 years ago

@tmnrp/react-sidebar v1.0.16

Weekly downloads
-
License
MIT
Repository
github
Last release
3 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

3 years ago

1.0.1

3 years ago

1.0.16

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago