Home / Function/ CardWithForm() — ui Function Reference

CardWithForm() — ui Function Reference

Architecture documentation for the CardWithForm() function in card-with-form.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  1463eba0_20ea_9d53_e068_d75c8b954462["CardWithForm()"]
  1a0b5b0a_6f81_9af2_e3e1_a559427757fa["card-with-form.tsx"]
  1463eba0_20ea_9d53_e068_d75c8b954462 -->|defined in| 1a0b5b0a_6f81_9af2_e3e1_a559427757fa
  style 1463eba0_20ea_9d53_e068_d75c8b954462 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/registry/new-york/examples/card-with-form.tsx lines 22–59

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

Frequently Asked Questions

What does CardWithForm() do?
CardWithForm() is a function in the ui codebase, defined in deprecated/www/registry/new-york/examples/card-with-form.tsx.
Where is CardWithForm() defined?
CardWithForm() is defined in deprecated/www/registry/new-york/examples/card-with-form.tsx at line 22.

Analyze Your Own Codebase

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

Try Supermodel Free