← Developers
From GIF search to a message.
A small, working chat example powered by @rowix/gifsnap-react. Try it below, then start with the same package in your own app.
Your app, with GIFs.
Local preview · nothing is sent to another person
Loading GIFs…
The same React package you can install. Searches use the live GifSnap API; messages stay in this page and clear when you reload.
Build it in your app.
Install the React SDK
npm install @rowix/gifsnap-reactAttach a GIF to your composer
import { useState } from "react";
import { GifPicker } from "@rowix/gifsnap-react";
import "@rowix/gifsnap-react/styles.css";
export function Composer({ sendMessage }) {
const [gif, setGif] = useState(null);
return <>
<GifPicker onSelect={setGif} />
{gif && <img src={gif.url} alt={gif.title} width="160" />}
<button disabled={!gif} onClick={() => {
sendMessage({ type: "gif", media: gif });
setGif(null);
}}>Send GIF</button>
</>;
}Your app owns message storage and delivery. The example keeps messages locally; it does not include a chat backend.