SHOWCASE / AVATARS
Pebble.
Meet a little character with a surprisingly explosive personality.
He follows your pointer. Try saying hello.
A little color
React · View code
A configurable avatar with an explosive reaction
const avatar = useRef<SwarmSurfaceHandle>(null);
const [expression, setExpression] = useState<AvatarExpression>("curious");
<SwarmAvatar ref={avatar} expression={expression}
silhouette="pebble" eyeScale={1.45} color="#82b5fa"
speech={0} style={{ height: 440 }}
onActionComplete={action => {
if (action.type === "explode") {
setExpression("dizzy");