Home / File/ preset-save.tsx — ui Source File

preset-save.tsx — ui Source File

Architecture documentation for preset-save.tsx, a tsx file in the ui codebase. 5 imports, 1 dependents.

File tsx ApplicationExhibition PlaygroundAI 5 imports 1 dependents 1 functions

Entity Profile

Dependency Diagram

graph LR
  0bdba296_73b9_2179_e794_49387e95bced["preset-save.tsx"]
  57e86e45_ac6e_7278_be08_9092724e8401["button"]
  0bdba296_73b9_2179_e794_49387e95bced --> 57e86e45_ac6e_7278_be08_9092724e8401
  0896a8fa_5462_a73a_5add_fb8176921778["dialog"]
  0bdba296_73b9_2179_e794_49387e95bced --> 0896a8fa_5462_a73a_5add_fb8176921778
  80cf663d_a411_487c_d69e_ac9d405cd2ec["input"]
  0bdba296_73b9_2179_e794_49387e95bced --> 80cf663d_a411_487c_d69e_ac9d405cd2ec
  d752035b_6ed3_c6ef_e27c_eef51af9ec8d["label"]
  0bdba296_73b9_2179_e794_49387e95bced --> d752035b_6ed3_c6ef_e27c_eef51af9ec8d
  a1802a9d_1c52_7ef5_709a_134c4400c1c3["textarea"]
  0bdba296_73b9_2179_e794_49387e95bced --> a1802a9d_1c52_7ef5_709a_134c4400c1c3
  5ee45142_aa10_ca73_456e_5946db3e53c3["page.tsx"]
  5ee45142_aa10_ca73_456e_5946db3e53c3 --> 0bdba296_73b9_2179_e794_49387e95bced
  style 0bdba296_73b9_2179_e794_49387e95bced fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { Button } from "@/registry/new-york-v4/ui/button"
import {
  Dialog,
  DialogContent,
  DialogDescription,
  DialogFooter,
  DialogHeader,
  DialogTitle,
  DialogTrigger,
} from "@/registry/new-york-v4/ui/dialog"
import { Input } from "@/registry/new-york-v4/ui/input"
import { Label } from "@/registry/new-york-v4/ui/label"
import { Textarea } from "@/registry/new-york-v4/ui/textarea"

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>
  )
}

Subdomains

Functions

Dependencies

  • button
  • dialog
  • input
  • label
  • textarea

Frequently Asked Questions

What does preset-save.tsx do?
preset-save.tsx is a source file in the ui codebase, written in tsx. It belongs to the ApplicationExhibition domain, PlaygroundAI subdomain.
What functions are defined in preset-save.tsx?
preset-save.tsx defines 1 function(s): PresetSave.
What does preset-save.tsx depend on?
preset-save.tsx imports 5 module(s): button, dialog, input, label, textarea.
What files import preset-save.tsx?
preset-save.tsx is imported by 1 file(s): page.tsx.
Where is preset-save.tsx in the architecture?
preset-save.tsx is located at apps/v4/app/(app)/examples/playground/components/preset-save.tsx (domain: ApplicationExhibition, subdomain: PlaygroundAI, directory: apps/v4/app/(app)/examples/playground/components).

Analyze Your Own Codebase

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

Try Supermodel Free