uibrik

Image Generation

Preview

Customize

Cell6px
Delay1.5s
Sweep3.2s
Band0.22
Width320px

Usage

import { ImageGeneration } from "@/components/uibrik/image-generation/ImageGeneration";

<ImageGeneration src={src} />

Installation

npx shadcn@latest add https://uibrik.com/r/image-generation.json
Adds the files to components/uibrik/image-generation. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/image-generation.

Props

ImageGeneration
prompt
Type string
"Generate an image of beautiful mountains"
Request shown above the card. Empty hides it.
cell
Type number
6
Square size of the dither field.
delay
Type number
1.5
Pure dither before the picture starts to appear.
sweep
Type number
3.2
How long the reveal band takes to travel down.
band
Type number
0.22
Band height as a share of the card.
width
Type number
320
Card width; the picture is 2:3.
srcrequired
Type string
–
The generated picture.
onDone
Type () => void
–
Called once the picture is fully revealed.
className
Type string
–
Classes for the wrapper.