mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-07 14:08:47 +00:00
* feat: add field.tsx and update blocks * feat: add input group * feat: implement button group * fix * fix * wip * fix: button group * feat: update field * fix * feat * feat: cooked * fix * chore: build registry * feat: add kbd component * chore: update input group demo * feat: update kbd component * feat: add empty * feat: add spinner * refactor: input group * feat: blocks * fix * fix: app sidebar * feat: add label to app sidebar * fix * fix * fix * fix * fix * feat * feat * fix * docs: button group * feat: add docs * docs: kbd * docs: empty * fix * docs * docs * feat: add sink link * fix * fix * docs * feat: add new page * fix * fix * fix * fix * fix * fix * feat: add registration form * fix: chat settings * fix * fix preview * fix examples * feat: add changelog * fix * fix * fix * fix * fix * feat(www): add t3 versions * chore: build registry * fix * fix * fix * feat: inline code examples for llm * fix * feat: home * fix * fix * fix * fix * fix * chore: changelog * fix * fix * fix * fix: callout * fix
101 lines
3.3 KiB
TypeScript
101 lines
3.3 KiB
TypeScript
"use client"
|
|
|
|
import * as React from "react"
|
|
|
|
import { Button } from "@/registry/new-york-v4/ui/button"
|
|
import {
|
|
Card,
|
|
CardContent,
|
|
CardDescription,
|
|
CardHeader,
|
|
CardTitle,
|
|
} from "@/registry/new-york-v4/ui/card"
|
|
import { Field, FieldGroup, FieldLabel } from "@/registry/new-york-v4/ui/field"
|
|
import { Input } from "@/registry/new-york-v4/ui/input"
|
|
import {
|
|
Select,
|
|
SelectContent,
|
|
SelectItem,
|
|
SelectTrigger,
|
|
SelectValue,
|
|
} from "@/registry/new-york-v4/ui/select"
|
|
import { Textarea } from "@/registry/new-york-v4/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>
|
|
<FieldGroup>
|
|
<FieldGroup className="grid gap-4 sm:grid-cols-2">
|
|
<Field>
|
|
<FieldLabel htmlFor={`area-${id}`}>Area</FieldLabel>
|
|
<Select defaultValue="billing">
|
|
<SelectTrigger
|
|
id={`area-${id}`}
|
|
aria-label="Area"
|
|
className="w-full"
|
|
>
|
|
<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>
|
|
</Field>
|
|
<Field>
|
|
<FieldLabel htmlFor={`security-level-${id}`}>
|
|
Security Level
|
|
</FieldLabel>
|
|
<Select defaultValue="2">
|
|
<SelectTrigger
|
|
id={`security-level-${id}`}
|
|
className="w-full [&_span]:!block [&_span]: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>
|
|
</Field>
|
|
</FieldGroup>
|
|
<Field>
|
|
<FieldLabel htmlFor={`subject-${id}`}>Subject</FieldLabel>
|
|
<Input id={`subject-${id}`} placeholder="I need help with..." />
|
|
</Field>
|
|
<Field>
|
|
<FieldLabel htmlFor={`description-${id}`}>Description</FieldLabel>
|
|
<Textarea
|
|
id={`description-${id}`}
|
|
placeholder="Please include all information relevant to your issue."
|
|
className="min-h-24"
|
|
/>
|
|
</Field>
|
|
<Field orientation="horizontal" className="justify-end">
|
|
<Button variant="ghost" size="sm">
|
|
Cancel
|
|
</Button>
|
|
<Button size="sm">Submit</Button>
|
|
</Field>
|
|
</FieldGroup>
|
|
</CardContent>
|
|
</Card>
|
|
)
|
|
}
|