ra

react-appbar

Auto-reveal appbar

Showing:

Popularity

Downloads/wk

2

GitHub Stars

6

Maintenance

Last Commit

5yrs ago

Contributors

0

Package

Dependencies

1

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

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

  1. 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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial