Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/codesyntax/ionic-react-header-collapse

Easy to use hook to handle collapse effect on scroll for IonHeader component in React Ionic
https://github.com/codesyntax/ionic-react-header-collapse

hacktoberfest ionic ionic-framework react

Last synced: 2 months ago
JSON representation

Easy to use hook to handle collapse effect on scroll for IonHeader component in React Ionic

Awesome Lists containing this project

README

        

# ionic-react-header-collapse

### Easy to use hook to handle collapse effect on scroll for IonHeader component in React Ionic

> Currently the package is in beta phase. Any issue or PR will be appreciated ;)

[![NPM](https://img.shields.io/npm/v/@codesyntax/ionic-react-header-collapse.svg)](https://www.npmjs.com/package/@codesyntax/ionic-react-header-collapse) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

IOS/Android:


## Install

```bash
npm install --save @codesyntax/ionic-react-header-collapse
```

## Usage

```tsx
import React, { Component } from 'react';

import { UseIonHeaderCollapse, useIonHeaderCollapse } from '@codesyntax/ionic-react-header-collapse';

const Home: React.FC = () => {
const { ref } = useIonHeaderCollapse({} as UseIonHeaderCollapse);
render() {
return (



Ionic header



...


);
}
}
```

## License

MIT © [CodeSyntax](https://github.com/codesyntax)