mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-09 06:55:07 +00:00
* feat(www): add login blocks * chore(www): restructure for blocks * chore: build registry * chore: clean up chunks * fix(www): chart categories * feat(www): big registry refactor * feat(www): update blocks * feat: complex blocks * fix: update schema * feat: sync new-york and default * fix: lint * feat: move charts * fix(www): code * fix: src path * chore: rebuild registry * fix: screenshot * fix: set new-york as default
93 lines
3.0 KiB
TypeScript
93 lines
3.0 KiB
TypeScript
"use client"
|
|
|
|
import * as React from "react"
|
|
|
|
import { Button } from "@/registry/new-york/ui/button"
|
|
import {
|
|
Card,
|
|
CardContent,
|
|
CardDescription,
|
|
CardFooter,
|
|
CardHeader,
|
|
CardTitle,
|
|
} from "@/registry/new-york/ui/card"
|
|
import { Input } from "@/registry/new-york/ui/input"
|
|
import { Label } from "@/registry/new-york/ui/label"
|
|
import {
|
|
Select,
|
|
SelectContent,
|
|
SelectItem,
|
|
SelectTrigger,
|
|
SelectValue,
|
|
} from "@/registry/new-york/ui/select"
|
|
import { Textarea } from "@/registry/new-york/ui/textarea"
|
|
|
|
export function CardsReportIssue() {
|
|
const id = React.useId()
|
|
|
|
return (
|
|
<Card>
|
|
<CardHeader>
|
|
<CardTitle>Report an issue</CardTitle>
|
|
<CardDescription>
|
|
What area are you having problems with?
|
|
</CardDescription>
|
|
</CardHeader>
|
|
<CardContent className="grid gap-6">
|
|
<div className="grid gap-4 sm:grid-cols-2">
|
|
<div className="grid gap-2">
|
|
<Label htmlFor={`area-${id}`}>Area</Label>
|
|
<Select defaultValue="billing">
|
|
<SelectTrigger id={`area-${id}`} aria-label="Area">
|
|
<SelectValue placeholder="Select" />
|
|
</SelectTrigger>
|
|
<SelectContent>
|
|
<SelectItem value="team">Team</SelectItem>
|
|
<SelectItem value="billing">Billing</SelectItem>
|
|
<SelectItem value="account">Account</SelectItem>
|
|
<SelectItem value="deployments">Deployments</SelectItem>
|
|
<SelectItem value="support">Support</SelectItem>
|
|
</SelectContent>
|
|
</Select>
|
|
</div>
|
|
<div className="grid gap-2">
|
|
<Label htmlFor={`security-level-${id}`}>Security Level</Label>
|
|
<Select defaultValue="2">
|
|
<SelectTrigger
|
|
id={`security-level-${id}`}
|
|
className="line-clamp-1 w-full truncate"
|
|
aria-label="Security Level"
|
|
>
|
|
<SelectValue placeholder="Select level" />
|
|
</SelectTrigger>
|
|
<SelectContent>
|
|
<SelectItem value="1">Severity 1 (Highest)</SelectItem>
|
|
<SelectItem value="2">Severity 2</SelectItem>
|
|
<SelectItem value="3">Severity 3</SelectItem>
|
|
<SelectItem value="4">Severity 4 (Lowest)</SelectItem>
|
|
</SelectContent>
|
|
</Select>
|
|
</div>
|
|
</div>
|
|
<div className="grid gap-2">
|
|
<Label htmlFor={`subject-${id}`}>Subject</Label>
|
|
<Input id={`subject-${id}`} placeholder="I need help with..." />
|
|
</div>
|
|
<div className="grid gap-2">
|
|
<Label htmlFor={`description-${id}`}>Description</Label>
|
|
<Textarea
|
|
id={`description-${id}`}
|
|
placeholder="Please include all information relevant to your issue."
|
|
/>
|
|
</div>
|
|
</CardContent>
|
|
<CardFooter className="justify-between space-x-2">
|
|
<Button variant="ghost" size="sm">
|
|
Cancel
|
|
</Button>
|
|
<Button size="sm">Submit</Button>
|
|
</CardFooter>
|
|
</Card>
|
|
)
|
|
}
|