PresetSave() — ui Function Reference
Architecture documentation for the PresetSave() function in preset-save.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 4d6f5cb4_0758_8cde_8856_f953c1f6df6d["PresetSave()"] 0bdba296_73b9_2179_e794_49387e95bced["preset-save.tsx"] 4d6f5cb4_0758_8cde_8856_f953c1f6df6d -->|defined in| 0bdba296_73b9_2179_e794_49387e95bced style 4d6f5cb4_0758_8cde_8856_f953c1f6df6d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/app/(app)/examples/playground/components/preset-save.tsx lines 15–45
export function PresetSave() {
return (
<Dialog>
<DialogTrigger asChild>
<Button variant="secondary">Save</Button>
</DialogTrigger>
<DialogContent>
<DialogHeader>
<DialogTitle>Save preset</DialogTitle>
<DialogDescription>
This will save the current playground state as a preset which you
can access later or share with others.
</DialogDescription>
</DialogHeader>
<div className="grid gap-6 py-4">
<div className="grid gap-3">
<Label htmlFor="name">Name</Label>
<Input id="name" autoFocus />
</div>
<div className="grid gap-3">
<Label htmlFor="description">Description</Label>
<Textarea id="description" />
</div>
</div>
<DialogFooter>
<Button type="submit">Save</Button>
</DialogFooter>
</DialogContent>
</Dialog>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does PresetSave() do?
PresetSave() is a function in the ui codebase, defined in apps/v4/app/(app)/examples/playground/components/preset-save.tsx.
Where is PresetSave() defined?
PresetSave() is defined in apps/v4/app/(app)/examples/playground/components/preset-save.tsx at line 15.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free