react-awesome-giphy
Version:
React wrapper for the Giphy API
26 lines (25 loc) • 846 B
TypeScript
/// <reference types="react" />
export declare type Props = {
apiKey: string;
callback?: (item: any) => void;
displayCallback?: (state: 'gifs' | 'stickers') => void;
display?: 'gifs' | 'stickers';
limit?: number;
offset?: number;
rating?: 'g' | 'pg' | 'pg-13' | 'r';
randomId?: string;
bundle?: string;
height?: number;
width?: number;
css?: string;
columns?: number;
textColor?: string;
textAltColor?: string;
bgColor?: string;
bgAltColor?: string;
buttonColor?: string;
inputColor?: string;
accentColor?: string;
};
declare const Giphy: ({ apiKey, callback, display, limit, height, width, columns, textColor, textAltColor, bgColor, bgAltColor, buttonColor, inputColor, accentColor, ...props }: Props) => JSX.Element;
export default Giphy;