Home / Function/ PresetSave() — ui Function Reference

PresetSave() — ui Function Reference

Architecture documentation for the PresetSave() function in preset-save.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  8a883a65_4f08_081c_b5af_dab4a85d323a["PresetSave()"]
  80973b14_d703_d5b0_7b55_201bd0e71851["preset-save.tsx"]
  8a883a65_4f08_081c_b5af_dab4a85d323a -->|defined in| 80973b14_d703_d5b0_7b55_201bd0e71851
  style 8a883a65_4f08_081c_b5af_dab4a85d323a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/app/(app)/examples/playground/components/preset-save.tsx lines 14–44

export function PresetSave() {
  return (
    <Dialog>
      <DialogTrigger asChild>
        <Button variant="secondary">Save</Button>
      </DialogTrigger>
      <DialogContent className="sm:max-w-[475px]">
        <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-4 py-4">
          <div className="grid gap-2">
            <Label htmlFor="name">Name</Label>
            <Input id="name" autoFocus />
          </div>
          <div className="grid gap-2">
            <Label htmlFor="description">Description</Label>
            <Input id="description" />
          </div>
        </div>
        <DialogFooter>
          <Button type="submit">Save</Button>
        </DialogFooter>
      </DialogContent>
    </Dialog>
  )
}

Subdomains

Frequently Asked Questions

What does PresetSave() do?
PresetSave() is a function in the ui codebase, defined in deprecated/www/app/(app)/examples/playground/components/preset-save.tsx.
Where is PresetSave() defined?
PresetSave() is defined in deprecated/www/app/(app)/examples/playground/components/preset-save.tsx at line 14.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free