Follow the Control Contract for prompt controls
mainEvery control for parameters such as model, aspect-ratio, duration, resolution, quality, or preset inside a floating prompt panel must adhere to the following contract:
- Sizing: Must remain 38 px high.
- Styling: Use
promptControlClassName()to preserve shared background, border, radius, hover state, and spacing. - Active State: Use
promptControlClassName({ active: true })for an open or selected control. - Labels: Use a 12 px semibold label (unless accessibility requirements dictate otherwise).
- Icons: Use the shared 16 px parameter icon for aspect ratio, duration, or quality.
- Configuration: Use the
compactoriconOnlyoptions instead of overriding horizontal padding or width with conflicting utility classes.
Approved Icons
PromptAspectRatioIcon: For aspect ratio parameters.PromptDurationIcon: For duration parameters.PromptQualityIcon: The single approved resolution/quality symbol (an unfilled, faceted gemstone outline).PromptChevronIcon: The shared affordance for controls that open a list.