Skip to Content
zjkm-ui
Components

Prompt Glow

A prompt box with a glow ring while the model works.

ProPro, coming soon.
Props
3.0s
2.0px
14px
16px
<PromptGlow>
  <PromptBox />
</PromptGlow>

Get notified

Prompt Glow is a Pro effect. Join the waitlist and we'll email you when it's available.

Usage

Wrap your prompt box. While active is on, a coloured ring turns around it with a soft glow behind. Give the box its own background so the ring only shows at the edge, and match radius to its border radius.

import { PromptGlow } from "@zjkm/pro/prompt-glow";

export function Composer({ busy }: { busy: boolean }) {
  return (
    <PromptGlow active={busy} radius={16}>
      <textarea className="rounded-2xl bg-white p-4" aria-label="Prompt" />
    </PromptGlow>
  );
}

Props

PropTypeDefaultDescription
childrenReactNodeYour prompt box.
activebooleantrueShows the ring and glow.
colorsstring[]cyan, violet, pinkColours around the ring. Repeat the first at the end for a seamless loop.
speednumber3Seconds per turn.
widthnumber2Pixels of ring outside the box.
blurnumber14Pixels of soft glow.
radiusnumber16Corner radius in pixels. Match your box's border-radius.
classNamestringClasses for the wrapper.

With reduced motion, the ring stays still.

On this page