0.2.1 • Published 7 years ago

react-giphy-search v0.2.1

Weekly downloads
16
License
MIT
Repository
github
Last release
7 years ago

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);
0.2.1

7 years ago

0.2.0

7 years ago

0.1.14

7 years ago

0.1.13

7 years ago

0.1.12

7 years ago

0.1.8

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago