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
  573ea45c_aeee_3d87_6b01_f618a116796c["CardWithForm()"]
  70207812_df3e_6a1b_034a_7a357a196933["card-with-form.tsx"]
  573ea45c_aeee_3d87_6b01_f618a116796c -->|defined in| 70207812_df3e_6a1b_034a_7a357a196933
  style 573ea45c_aeee_3d87_6b01_f618a116796c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/new-york-v4/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-6">
            <div className="flex flex-col gap-3">
              <Label htmlFor="name">Name</Label>
              <Input id="name" placeholder="Name of your project" />
            </div>
            <div className="flex flex-col gap-3">
              <Label htmlFor="framework">Framework</Label>
              <Select>
                <SelectTrigger id="framework" className="w-full">
                  <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 apps/v4/registry/new-york-v4/examples/card-with-form.tsx.
Where is CardWithForm() defined?
CardWithForm() is defined in apps/v4/registry/new-york-v4/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