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

report-issue.tsx — ui Source File

Architecture documentation for report-issue.tsx, a tsx file in the ui codebase. 7 imports, 0 dependents.

File tsx ComponentRegistry UIPrimitives 7 imports 1 functions

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

"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>
  )
}

Subdomains

Functions

Dependencies

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

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 ComponentRegistry domain, UIPrimitives 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, input, label, react, select, textarea.
Where is report-issue.tsx in the architecture?
report-issue.tsx is located at deprecated/www/components/cards/report-issue.tsx (domain: ComponentRegistry, subdomain: UIPrimitives, directory: deprecated/www/components/cards).

Analyze Your Own Codebase

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

Try Supermodel Free