Modus UI

Polish Pane

Web (React)

A frame that resolves an image from pixel mosaic to sharp as generation progresses.

Status prints in a mono pill and the frame rests on the muted surface with tight corners.

Concrete facade
Refining
Modus / Polish Pane

Installation

CLI

npx @modus-ui/cli add polish-pane

Manual

  1. Copy the code from the component tab.
  2. Create a file at components/ui/polish-pane.tsx.
  3. Paste the code.

Usage

tsx
import { PolishPane } from "@/components/ui/polish-pane";

export default function Example() {
  return <PolishPane />;
}

Props

PropTypeDefaultDescription
statusstring"generating"-
childrenany--
aspectRatiostring"1 / 1"-
widthnumber320-
radiusnumber6-
backgroundstring"hsl(var(--muted))"-
colorstring"hsl(var(--foreground))"-
stageDurationnumber400-
sweepbooleantrue-
showStatusbooleantrue-
hideAfternumber1200-
labelsanyDEFAULT_LABELS-
retryLabelstring"Retry"-
onRetryany--

Comments

  • No comments yet.