mirror of
https://github.com/hanzoai/shadcn.git
synced 2026-11-03 03:18:52 +00:00
Squash merge of shadcn-ui/ui main branch into hanzo/ui, bringing in: - [email protected] through [email protected] releases - New apps/v4 directory structure - Registry system improvements and MCP server - Framework support (Vue, Svelte, React Native) - New templates (vite-app, monorepo-next, laravel) - Zod 4 compatibility (scoped override for zod@>4) - Test fixture corrections for alias resolution All 867 merge conflicts resolved preserving Hanzo customizations. 1020/1020 shadcn tests pass.
46 lines
1.3 KiB
TypeScript
46 lines
1.3 KiB
TypeScript
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>
|
|
)
|
|
}
|