report-issue.tsx — ui Source File
Architecture documentation for report-issue.tsx, a tsx file in the ui codebase. 7 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 7fc08248_26ce_2a61_04ec_3a86ee24b030["report-issue.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] 7fc08248_26ce_2a61_04ec_3a86ee24b030 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 57e86e45_ac6e_7278_be08_9092724e8401["button"] 7fc08248_26ce_2a61_04ec_3a86ee24b030 --> 57e86e45_ac6e_7278_be08_9092724e8401 c6d6139d_ea69_3d79_5004_68419bae2ac0["card"] 7fc08248_26ce_2a61_04ec_3a86ee24b030 --> c6d6139d_ea69_3d79_5004_68419bae2ac0 169af77a_46c3_8fec_4801_f34a0f1a3471["field"] 7fc08248_26ce_2a61_04ec_3a86ee24b030 --> 169af77a_46c3_8fec_4801_f34a0f1a3471 80cf663d_a411_487c_d69e_ac9d405cd2ec["input"] 7fc08248_26ce_2a61_04ec_3a86ee24b030 --> 80cf663d_a411_487c_d69e_ac9d405cd2ec c2fa7225_1ddd_1cbc_8810_ee5e42af14d6["select"] 7fc08248_26ce_2a61_04ec_3a86ee24b030 --> c2fa7225_1ddd_1cbc_8810_ee5e42af14d6 a1802a9d_1c52_7ef5_709a_134c4400c1c3["textarea"] 7fc08248_26ce_2a61_04ec_3a86ee24b030 --> a1802a9d_1c52_7ef5_709a_134c4400c1c3 style 7fc08248_26ce_2a61_04ec_3a86ee24b030 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"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>
)
}
Domain
Subdomains
Functions
Dependencies
- button
- card
- field
- input
- react
- select
- textarea
Source
Frequently Asked Questions
What does report-issue.tsx do?
report-issue.tsx is a source file in the ui codebase, written in tsx. It belongs to the Internationalization domain, RTLLayout subdomain.
What functions are defined in report-issue.tsx?
report-issue.tsx defines 1 function(s): CardsReportIssue.
What does report-issue.tsx depend on?
report-issue.tsx imports 7 module(s): button, card, field, input, react, select, textarea.
Where is report-issue.tsx in the architecture?
report-issue.tsx is located at apps/v4/components/cards/report-issue.tsx (domain: Internationalization, subdomain: RTLLayout, directory: apps/v4/components/cards).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free