@react95/clippy
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

Clippy agent

@react95/clippy

Using Clippy and its friends in your React Application it has never been easier!

Instalation

yarn add @react95/clippy

Usage

import { useClippy, ClippyProvider } from '@react95/clippy';

const MyComponent = () => {
  const { clippy } = useClippy();

  return <Button onClick={() => clippy.play('Wave')}>Hello Clippy!</Button>;
};

const App = () => (
  <ClippyProvider>
    <MyComponent />
  </ClippyProvider>
);

Changing the Agent

import { AGENTS } from '@react95/clippy';

const App = () => (
  <ClippyProvider agentName={AGENTS.MERLIN}>
    <MyComponent />
  </ClippyProvider>
);

API and Special thanks

This package only exposes the brilliant job done in

  • clippyjs project, in which you can find all the details you'll need.
  • clippyts providing all types of it.

Package Sidebar

Install

npm i @react95/clippy

Weekly Downloads

991

Version

2.0.2

License

MIT

Unpacked Size

35.5 MB

Total Files

31

Last publish

Collaborators

  • allyssonsantos
  • ggdaltoso