Skip to content

ParameterPanel

Stable

A set of choices for making something with AI, with a live cost and a Generate button.

Also known as settings panel, generation settings, controls panel

Install with npm install @tattva/ui (setup), or copy the code from the kit in Downloads.

Video settings with cost

Settings

Duration
Shape
Repeat code
FixedRandom each time

About 60 credits

Length, shape and a repeat code. The cost changes when the length changes.

When to use it

Gathers the settings for one thing being made, with the cost shown above Generate. People can change settings while they can still see what it will cost.

Made of: Title · Settings · Cost · Generate button

Use it for

  • Settings for one image, video or other result, next to where the request is typed.
  • Showing a cost that updates as the settings change.
  • Letting people fix a repeat code so they can get similar results again.

Not for

  • Settings that apply to the whole app.
  • Actions on a result that already exists: use VariationActions.
  • Choosing which AI model to use: use ModelPicker.

Do and avoid

Cover image

Shape
Style

4 credits

Do. A few settings, with the cost right above Generate.

Cover image

Shape
Style
Light
Mood
Images
Seed
FixedRandom each time

4 credits

Avoid. A long list of settings pushes Generate and the cost out of sight.

Do

  • Show the cost before making anything, so people can change settings first.
  • Keep the list short. Put the settings people change most at the top.
  • Add a hint on the repeat code that says what it does and does not promise.
  • Work out the cost from the same settings that Generate uses.
  • Set busy while the result is being made, so Generate turns off and shows it is working.

Avoid

  • Do not use amber for the cost. Cost is just information until it blocks something.
  • Do not bury the Generate button below a long list of settings.
  • Do not keep the settings inside the panel. Your app owns them.
  • Do not use it for settings that apply to the whole app. It is for one creation.

On a phone

  • The panel fills the width, and the option chips wrap onto new lines.
  • Switches and number boxes grow to 44px tall on a touch screen, and the number boxes are 16px so the page does not zoom. Chips keep their size and have a 44px tap area.
  • Option descriptions are set as a title only, which a finger cannot show, so put anything people must read in the label or hint.
  • The cost line and Generate button stay on one row at the bottom.

Seen in products

  • Runway Gen-4 offers duration of 5 or 10 seconds and aspect ratios 16:9, 9:16, 1:1, 4:3, 3:4 and 21:9.
  • Runway has a fixed-seed toggle and a seed number for repeatability. The seed is documented as similar, not identical.
  • Runway shows the credit cost per second before generating. Gen-4 is 12 credits per second and Turbo is 5.
  • Midjourney has Stylize and aspect ratio controls.
  • Shape of AI lists Parameters, Preset styles, Saved styles, Prompt enhancer and Voice and tone under Tuners, and Cost estimates and Draft mode under Governors.

Build your next AI screen with Tattva.

Free and open, with the code. Start in one line.

Get started