Socket
Book a DemoInstallSign in
Socket

@clipmx/bottom-navigation

Package Overview
Dependencies
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clipmx/bottom-navigation

Bottom navigation component

0.1.8
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
3
Weekly downloads
 
Created
Source

Clip Bottom Navigation

Installation

npm install @clipmx/bottom-navigation --save

Usage

import React from 'react';
import BottomNavigation, { BottomNavigationAction } from '@clipmx/bottom-navigation';
import Menu from '@material-ui/icons/Menu';
import Dashboard from '@material-ui/icons/Dashboard';
import SupervisorAccount from '@material-ui/icons/SupervisorAccount';
import Account from '@material-ui/icons/AccountCircle';
import AttachMoney from '@material-ui/icons/AttachMoney';

class MyComponent extends React.Component {
  this.state = { selected: 3 };

  handleOnChange = (event, value) => this.setState({ selected: value } );

  render() {
    return (
      <div>
        <BottomNavigation showLabels={false} onChange={this.handleOnChange} value={this.state.selected}>
          <BottomNavigationAction icon={<Account />} label="Item1" />
          <BottomNavigationAction icon={<SupervisorAccount />} label="Item2" />
          <BottomNavigationAction icon={<AttachMoney />} label="Item3" />
          <BottomNavigationAction icon={<Dashboard />} label="Item4" />
          <BottomNavigationAction icon={<Menu />} label="Item5" />
        </BottomNavigation>
      </div>
    );
  }
}

export default MyComponent;

Props

This is a wrapper of the Material-UI BottomNavigation and Material-UI BottomNavigationAction, so you can use any props that Material-UI supports.

FAQs

Package last updated on 25 Jun 2019

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.