form-tanstack-radiogroup.tsx — ui Source File
Architecture documentation for form-tanstack-radiogroup.tsx, a tsx file in the ui codebase. 7 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 4e2a5f5d_8042_cebe_c7d0_597cf0643303["form-tanstack-radiogroup.tsx"] 32ce9c09_437f_bced_67c5_ff04d8757a76["react-form"] 4e2a5f5d_8042_cebe_c7d0_597cf0643303 --> 32ce9c09_437f_bced_67c5_ff04d8757a76 e750d152_1191_1793_7244_99c7f9c595f4["sonner"] 4e2a5f5d_8042_cebe_c7d0_597cf0643303 --> e750d152_1191_1793_7244_99c7f9c595f4 6802ce19_522d_e5fb_e458_8826d9f6952e["zod"] 4e2a5f5d_8042_cebe_c7d0_597cf0643303 --> 6802ce19_522d_e5fb_e458_8826d9f6952e 57e86e45_ac6e_7278_be08_9092724e8401["button"] 4e2a5f5d_8042_cebe_c7d0_597cf0643303 --> 57e86e45_ac6e_7278_be08_9092724e8401 c6d6139d_ea69_3d79_5004_68419bae2ac0["card"] 4e2a5f5d_8042_cebe_c7d0_597cf0643303 --> c6d6139d_ea69_3d79_5004_68419bae2ac0 169af77a_46c3_8fec_4801_f34a0f1a3471["field"] 4e2a5f5d_8042_cebe_c7d0_597cf0643303 --> 169af77a_46c3_8fec_4801_f34a0f1a3471 a3246e53_c55c_1cf0_424d_b2142e1739ab["radio-group"] 4e2a5f5d_8042_cebe_c7d0_597cf0643303 --> a3246e53_c55c_1cf0_424d_b2142e1739ab style 4e2a5f5d_8042_cebe_c7d0_597cf0643303 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
/* eslint-disable react/no-children-prop */
"use client"
import { useForm } from "@tanstack/react-form"
import { toast } from "sonner"
import * as z from "zod"
import { Button } from "@/registry/new-york-v4/ui/button"
import {
Card,
CardContent,
CardDescription,
CardFooter,
CardHeader,
CardTitle,
} from "@/registry/new-york-v4/ui/card"
import {
Field,
FieldContent,
FieldDescription,
FieldError,
FieldGroup,
FieldLabel,
FieldLegend,
FieldSet,
FieldTitle,
} from "@/registry/new-york-v4/ui/field"
import {
RadioGroup,
RadioGroupItem,
} from "@/registry/new-york-v4/ui/radio-group"
const plans = [
{
id: "starter",
title: "Starter (100K tokens/month)",
description: "For everyday use with basic features.",
},
{
id: "pro",
title: "Pro (1M tokens/month)",
description: "For advanced AI usage with more features.",
},
{
id: "enterprise",
title: "Enterprise (Unlimited tokens)",
description: "For large teams and heavy usage.",
},
] as const
const formSchema = z.object({
plan: z.string().min(1, "You must select a subscription plan to continue."),
})
export default function FormTanstackRadioGroup() {
const form = useForm({
defaultValues: {
plan: "",
},
validators: {
// ... (101 more lines)
Domain
Subdomains
Functions
Dependencies
- button
- card
- field
- radio-group
- react-form
- sonner
- zod
Source
Frequently Asked Questions
What does form-tanstack-radiogroup.tsx do?
form-tanstack-radiogroup.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 form-tanstack-radiogroup.tsx?
form-tanstack-radiogroup.tsx defines 1 function(s): FormTanstackRadioGroup.
What does form-tanstack-radiogroup.tsx depend on?
form-tanstack-radiogroup.tsx imports 7 module(s): button, card, field, radio-group, react-form, sonner, zod.
Where is form-tanstack-radiogroup.tsx in the architecture?
form-tanstack-radiogroup.tsx is located at apps/v4/registry/new-york-v4/examples/form-tanstack-radiogroup.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/new-york-v4/examples).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free