Prompt Playground
A system prompt and a template whose variables become fields, with model settings, saved versions and a run history.
Rendering Prompt Playground…
Installation
Part of Mlola Pro. Its source is not in the free registry, so the free CLI will not install it; licence holders receive it with its stylesheet, under @/components/ui, and it is theirs to edit. See Mlola Pro.
Usage
import { PromptPlayground } from "@/components/ui/prompt-playground";
export function Example() {
return <PromptPlayground />;
}Styling comes from the engine stylesheet and the nearest theme. Set it once at the root:
<html data-theme="graphite" data-mode="light">Accessibility and theming
- Semantic elements, accessible names and state relationships are part of the contract.
- Keyboard, pointer and touch paths are operable; focus stays visible in every theme.
- Light and dark modes pass WCAG AA contrast in all 5 canonical themes.
- Reduced motion and forced colours keep meaning and operation.
Dependencies
Installed alongside this component. No third-party UI runtime is ever added.
- button
- input
- number-input
- select
- slider
- streaming-text
- textarea
@mlola-ui/icons