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

react-appbar

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-appbar

Auto-reveal Appbar

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

React Appbar (v2.0.0)

An appbar based on Sticky Header Auto-Reveal by MrPirrera.

Examples

gif

Installation

npm install react-appbar --save

Basic Usage

This package comes with a pre-defined appbar. Alternatively, you can use createAutoReveal() to create your own appbar.

var Appbar = require('react-appbar');

<Appbar>
	This is an appbar
</Appbar>

Full APIs

  • createAutoReveal(Appbar) - This function takes React component as its only argument. For example,

     ```
     import React from 'react';
     import { createAutoReveal } from 'react-appbar';
    
     const MyAppbar = ({
     	top,
     }) => {
     	const appbarStyle = {
     		...yourStyle,
     		transform: `translateY(${top}px)`,   //--- this is important
     	}
    
     	return (
     		<div style={appbarStyle}>
     			<span>Appbar</span>
     		</div>
     	)
     }
    
     export default MyAppbar;
     ```
    

License

MIT

Keywords

react

FAQs

Package last updated on 14 Jun 2016

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