1.0.9 • Published 1 year ago

creatorfy-clippy v1.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

creatorfy-clippy

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

Instalation

Using yarn

yarn add creatorfy-clippy

Using npm

npm install --save creatorfy-clippy

Usage

import { useClippy, ClippyProvider } from "creatorfy-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 "creatorfy-clippy";

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

API and Special thanks

This package only exposes the brilliant job done in clippyjs project, which you can find all details you'll need.

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago