preset-save.tsx — ui Source File
Architecture documentation for preset-save.tsx, a tsx file in the ui codebase. 4 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR 80973b14_d703_d5b0_7b55_201bd0e71851["preset-save.tsx"] aa2f3ec6_f291_3763_88ec_65a3f5ad5939["button"] 80973b14_d703_d5b0_7b55_201bd0e71851 --> aa2f3ec6_f291_3763_88ec_65a3f5ad5939 4dc8bbf9_c114_4bfa_0f89_4ae4ccd0ae1e["dialog"] 80973b14_d703_d5b0_7b55_201bd0e71851 --> 4dc8bbf9_c114_4bfa_0f89_4ae4ccd0ae1e 2de1d0e1_ab37_e1b0_4ef3_da8c8fa66107["input"] 80973b14_d703_d5b0_7b55_201bd0e71851 --> 2de1d0e1_ab37_e1b0_4ef3_da8c8fa66107 fa665cdb_5f79_b81a_95ab_12ba182fc175["label"] 80973b14_d703_d5b0_7b55_201bd0e71851 --> fa665cdb_5f79_b81a_95ab_12ba182fc175 f546dde4_68c5_f623_9286_65aeda13ccc5["page.tsx"] f546dde4_68c5_f623_9286_65aeda13ccc5 --> 80973b14_d703_d5b0_7b55_201bd0e71851 style 80973b14_d703_d5b0_7b55_201bd0e71851 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { Button } from "@/registry/new-york/ui/button"
import {
Dialog,
DialogContent,
DialogDescription,
DialogFooter,
DialogHeader,
DialogTitle,
DialogTrigger,
} from "@/registry/new-york/ui/dialog"
import { Input } from "@/registry/new-york/ui/input"
import { Label } from "@/registry/new-york/ui/label"
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>
)
}
Domain
Subdomains
Functions
Dependencies
- button
- dialog
- input
- label
Source
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 ComponentRegistry domain, UIPrimitives 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 4 module(s): button, dialog, input, label.
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 deprecated/www/app/(app)/examples/playground/components/preset-save.tsx (domain: ComponentRegistry, subdomain: UIPrimitives, directory: deprecated/www/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