Home / File/ report-an-issue.tsx — ui Source File

report-an-issue.tsx — ui Source File

Architecture documentation for report-an-issue.tsx, a tsx file in the ui codebase. 6 imports, 1 dependents.

File tsx ComponentRegistry UIPrimitives 6 imports 1 dependents 1 functions

Entity Profile

Dependency Diagram

graph LR
  ca3445f8_17de_5d00_8cf8_a14b4243cdeb["report-an-issue.tsx"]
  aa2f3ec6_f291_3763_88ec_65a3f5ad5939["button"]
  ca3445f8_17de_5d00_8cf8_a14b4243cdeb --> aa2f3ec6_f291_3763_88ec_65a3f5ad5939
  95a7752f_4b97_5bde_5d7d_fca03536ac35["card"]
  ca3445f8_17de_5d00_8cf8_a14b4243cdeb --> 95a7752f_4b97_5bde_5d7d_fca03536ac35
  2de1d0e1_ab37_e1b0_4ef3_da8c8fa66107["input"]
  ca3445f8_17de_5d00_8cf8_a14b4243cdeb --> 2de1d0e1_ab37_e1b0_4ef3_da8c8fa66107
  fa665cdb_5f79_b81a_95ab_12ba182fc175["label"]
  ca3445f8_17de_5d00_8cf8_a14b4243cdeb --> fa665cdb_5f79_b81a_95ab_12ba182fc175
  d493776b_8734_5d8d_382d_0f77f309a72b["select"]
  ca3445f8_17de_5d00_8cf8_a14b4243cdeb --> d493776b_8734_5d8d_382d_0f77f309a72b
  11676f4c_1cc5_0c74_a596_96328025a3d7["textarea"]
  ca3445f8_17de_5d00_8cf8_a14b4243cdeb --> 11676f4c_1cc5_0c74_a596_96328025a3d7
  72f1b829_240b_a010_b4ad_dfef30ded6bf["page.tsx"]
  72f1b829_240b_a010_b4ad_dfef30ded6bf --> ca3445f8_17de_5d00_8cf8_a14b4243cdeb
  style ca3445f8_17de_5d00_8cf8_a14b4243cdeb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

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 DemoReportAnIssue() {
  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 grid-cols-2 gap-4">
          <div className="grid gap-2">
            <Label htmlFor="area">Area</Label>
            <Select defaultValue="billing">
              <SelectTrigger id="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">Security Level</Label>
            <Select defaultValue="2">
              <SelectTrigger
                id="security-level"
                className="line-clamp-1 w-[160px] truncate"
              >
                <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">Subject</Label>
          <Input id="subject" placeholder="I need help with..." />
        </div>
        <div className="grid gap-2">
          <Label htmlFor="description">Description</Label>
          <Textarea
            id="description"
            placeholder="Please include all information relevant to your issue."
          />
        </div>
      </CardContent>
      <CardFooter className="justify-between space-x-2">
        <Button variant="ghost">Cancel</Button>
        <Button>Submit</Button>
      </CardFooter>
    </Card>
  )
}

Subdomains

Dependencies

  • button
  • card
  • input
  • label
  • select
  • textarea

Frequently Asked Questions

What does report-an-issue.tsx do?
report-an-issue.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, UIPrimitives subdomain.
What functions are defined in report-an-issue.tsx?
report-an-issue.tsx defines 1 function(s): DemoReportAnIssue.
What does report-an-issue.tsx depend on?
report-an-issue.tsx imports 6 module(s): button, card, input, label, select, textarea.
What files import report-an-issue.tsx?
report-an-issue.tsx is imported by 1 file(s): page.tsx.
Where is report-an-issue.tsx in the architecture?
report-an-issue.tsx is located at deprecated/www/app/(app)/examples/cards/components/report-an-issue.tsx (domain: ComponentRegistry, subdomain: UIPrimitives, directory: deprecated/www/app/(app)/examples/cards/components).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free