New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-dashboard-skeleton

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-dashboard-skeleton

react-dashboard-skeleton provides you a basic skeleton UI for dashboard containing navbar and sidebar along with basic routes. You can modify the routes based on your needs. The content section will be changing based on the routes clicked on the sidebar

latest
Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

react-dashboard-skeleton

react-dashboard-skeleton provides you a basic skeleton UI for dashboard containing navbar and sidebar along with basic routes. You can modify the routes based on your needs. The content section will be changing based on the routes clicked on the sidebar

NPM JavaScript Style Guide

Install

npm install --save react-dashboard-skeleton

For yarn installation

yarn add react-dashboard-skeleton

Usage

import React from 'react'

import { DashboardSkeleton } from 'react-dashboard-skeleton'
import 'react-dashboard-skeleton/dist/index.css'
import Dashboard from './dashboard'
import About from './about'
import Reports from './reports'

const navProps = {
  showNav : true,
  customStyles : {},
  titleComponentType : 'text', // logo , text => these types could be passed to display on top of the nav bar
  title : 'My Dashboard',
  // logoUrl : '' ## Pass this param if the titleComponentType is "logo"
}

const sidebarProps = {
  menu : [
    {
        path: "/",
        name: "Dashboard", //Name of the menu
        iconUrl: '',
        roles: [0,1,2], // You can set user roles who has the access to the page
        element : <Dashboard/> // Component
    },
    {
        path: "/about",
        name: "About", //Name of the menu
        iconUrl: '',
        roles: [0,1,2], // You can set user roles who has the access to the page
        element : <About/> // Component
    },
    {
        path: "/reports",
        name: "Reports", //Name of the menu
        iconUrl: '',
        roles: [0,1], // You can set user roles who has the access to the page
        element : <Reports/> // Component
    }
  ]
}

const App = () => {
  return <DashboardSkeleton navProps={navProps} sidebarProps={sidebarProps}/>
}

export default App

License

MIT License

Keywords

react

FAQs

Package last updated on 07 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts