Gen Settings

A run's settings behind one toolbar button that sums them up, opening above the prompt with the pickers the model takes.

In use

Each studio's settings: ratio and size in the Playground, duration and audio in the Video Studio, per tool in the Image Edit Studio.

Lumen
CreateEditVideo
240 credits

Your image will appear here

Your image will appear here

Your image will appear here

Your image will appear here

16 credits

Installation

pnpm dlx shadcn@latest add https://mgp.paukraft.com/r/gen-settings.json

GenSettings

Also takes Base UI's Popover.Root props.

PropTypeDefault
summaryReactNode

The trigger's content: the settings, summed up, e.g. the ratio's shape and "16:9 · 2K".

—
childrenReactNode

The popup's settings, each in a GenSettingsField.

—
classNamestring

On the popup, e.g. to widen it.

—

Parts

PropTypeDefault
GenSettingsRootPopover.Root

Open state, e.g. open or defaultOpen.

—
GenSettingsTriggerPopover.Trigger

An h-8 toolbar button.

—
GenSettingsContentPopover.Popup & { side?, align? }

The popup, inverted so it stands off the page without a shadow.

side="top" align="start"
GenSettingsFielddiv & { label: ReactNode }

One labelled setting.

—