mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-07 22:18:39 +00:00
60 lines
1.8 KiB
TypeScript
60 lines
1.8 KiB
TypeScript
import * as React from "react"
|
|
|
|
import { Button } from "@/registry/default/ui/button"
|
|
import {
|
|
Card,
|
|
CardContent,
|
|
CardDescription,
|
|
CardFooter,
|
|
CardHeader,
|
|
CardTitle,
|
|
} from "@/registry/default/ui/card"
|
|
import { Input } from "@/registry/default/ui/input"
|
|
import { Label } from "@/registry/default/ui/label"
|
|
import {
|
|
Select,
|
|
SelectContent,
|
|
SelectItem,
|
|
SelectTrigger,
|
|
SelectValue,
|
|
} from "@/registry/default/ui/select"
|
|
|
|
export default function CardWithForm() {
|
|
return (
|
|
<Card className="w-[350px]">
|
|
<CardHeader>
|
|
<CardTitle>Create project</CardTitle>
|
|
<CardDescription>Deploy your new project in one-click.</CardDescription>
|
|
</CardHeader>
|
|
<CardContent>
|
|
<form>
|
|
<div className="grid w-full items-center gap-4">
|
|
<div className="flex flex-col space-y-1.5">
|
|
<Label htmlFor="name">Name</Label>
|
|
<Input id="name" placeholder="Name of your project" />
|
|
</div>
|
|
<div className="flex flex-col space-y-1.5">
|
|
<Label htmlFor="framework">Framework</Label>
|
|
<Select>
|
|
<SelectTrigger id="framework">
|
|
<SelectValue placeholder="Select" />
|
|
</SelectTrigger>
|
|
<SelectContent position="popper">
|
|
<SelectItem value="next">Next.js</SelectItem>
|
|
<SelectItem value="sveltekit">SvelteKit</SelectItem>
|
|
<SelectItem value="astro">Astro</SelectItem>
|
|
<SelectItem value="nuxt">Nuxt.js</SelectItem>
|
|
</SelectContent>
|
|
</Select>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</CardContent>
|
|
<CardFooter className="flex justify-between">
|
|
<Button variant="outline">Cancel</Button>
|
|
<Button>Deploy</Button>
|
|
</CardFooter>
|
|
</Card>
|
|
)
|
|
}
|