Package Exports
- creatorfy-clippy
- creatorfy-clippy/dist/cjs/index.js
- creatorfy-clippy/dist/esm/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (creatorfy-clippy) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
creatorfy-clippy
Using Clippy and its friends in your React Application it has never been easier!
Instalation
Using yarn
yarn add creatorfy-clippyUsing npm
npm install --save creatorfy-clippyUsage
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.