Home / File/ card-with-form.tsx — ui Source File

card-with-form.tsx — ui Source File

Architecture documentation for card-with-form.tsx, a tsx file in the ui codebase. 6 imports, 0 dependents.

File tsx ComponentRegistry ChartRegistry 6 imports 1 functions

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

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"

export default function CardWithForm() {
  return (
    <Card className="w-[350px]">
      <CardHeader>
        <CardTitle>Create project</CardTitle>
        <CardDescription>Deploy your new project in one-click.</CardDescription>
      </CardHeader>
      <CardContent>
        <form>
          <div className="grid w-full items-center gap-4">
            <div className="flex flex-col space-y-1.5">
              <Label htmlFor="name">Name</Label>
              <Input id="name" placeholder="Name of your project" />
            </div>
            <div className="flex flex-col space-y-1.5">
              <Label htmlFor="framework">Framework</Label>
              <Select>
                <SelectTrigger id="framework">
                  <SelectValue placeholder="Select" />
                </SelectTrigger>
                <SelectContent position="popper">
                  <SelectItem value="next">Next.js</SelectItem>
                  <SelectItem value="sveltekit">SvelteKit</SelectItem>
                  <SelectItem value="astro">Astro</SelectItem>
                  <SelectItem value="nuxt">Nuxt.js</SelectItem>
                </SelectContent>
              </Select>
            </div>
          </div>
        </form>
      </CardContent>
      <CardFooter className="flex justify-between">
        <Button variant="outline">Cancel</Button>
        <Button>Deploy</Button>
      </CardFooter>
    </Card>
  )
}

Subdomains

Functions

Dependencies

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

Frequently Asked Questions

What does card-with-form.tsx do?
card-with-form.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, ChartRegistry subdomain.
What functions are defined in card-with-form.tsx?
card-with-form.tsx defines 1 function(s): CardWithForm.
What does card-with-form.tsx depend on?
card-with-form.tsx imports 6 module(s): button, card, input, label, react, select.
Where is card-with-form.tsx in the architecture?
card-with-form.tsx is located at deprecated/www/registry/new-york/examples/card-with-form.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/new-york/examples).

Analyze Your Own Codebase

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

Try Supermodel Free