Skip to content

Navigation Menu

Sign in
Sign up

Repository files navigation

Clippy React

React wrapper around ClippyJS

Installation

npm install --save clippy-react

Usage

Currently there's only a ref version of the Clippy component. A declarative version is in the works.

import { Clippy } from "clippy-react";
export const Demo = () => {
 const clippy = useRef<Clippy>();
 const onClippyLoad = () => {
 if(clippy.current){
 clippy.current.show();
 clippy.current.speak('Hello World');
 clippy.current.play('GetTechy');
 }
 }
 return (
 <>
 <h1>Hello World</h1>
 <Clippy name="Clippy" ref={clippy} onLoad={onClippyLoad}>
 </>;
 );
}

Screenshot

Clippy

About

Microsoft's Clippy in React

Resources

Stars

9 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /