react-giphy-search

0.2.1 • Public • Published

React Giphy Search

npm version Build Status codecov

Add a Messenger-like Giphy search bar and gallery to your app.

Searching lol

Installation

yarn add react-giphy-search

Peer dependencies are react@15.x, react-redux@5.x, and redux@3.x.

Usage

import React from 'react';
import ReactDOM from 'react-dom';
 
import GiphySearch from 'react-giphy-search';
 
const App = () => {
  const handleGifSelection = (id) => {
    console.log(id);
  }
 
  return (
    <GiphySearch
      onGifSelection={(id) => handleGifSelection(id)}
      // optional prop `styles` to override default styles:
      styles={{
        wrapper: {
 
        },
        searchBar: {
 
        },
        gifList: {
 
        },
        gifListItem: {
 
        },
      }}
    />
  );
}
 
ReactDOM.render(<App />, document.body);

Readme

Keywords

none

Package Sidebar

Install

npm i react-giphy-search

Weekly Downloads

8

Version

0.2.1

License

MIT

Last publish

Collaborators

  • arnaudrenaud