Home / File/ payment-method.tsx — ui Source File

payment-method.tsx — ui Source File

Architecture documentation for payment-method.tsx, a tsx file in the ui codebase. 6 imports, 0 dependents.

File tsx Internationalization RTLLayout 6 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  ea426ab4_c17e_371c_d89a_bee83a21578d["payment-method.tsx"]
  57e86e45_ac6e_7278_be08_9092724e8401["button"]
  ea426ab4_c17e_371c_d89a_bee83a21578d --> 57e86e45_ac6e_7278_be08_9092724e8401
  c6d6139d_ea69_3d79_5004_68419bae2ac0["card"]
  ea426ab4_c17e_371c_d89a_bee83a21578d --> c6d6139d_ea69_3d79_5004_68419bae2ac0
  80cf663d_a411_487c_d69e_ac9d405cd2ec["input"]
  ea426ab4_c17e_371c_d89a_bee83a21578d --> 80cf663d_a411_487c_d69e_ac9d405cd2ec
  d752035b_6ed3_c6ef_e27c_eef51af9ec8d["label"]
  ea426ab4_c17e_371c_d89a_bee83a21578d --> d752035b_6ed3_c6ef_e27c_eef51af9ec8d
  a3246e53_c55c_1cf0_424d_b2142e1739ab["radio-group"]
  ea426ab4_c17e_371c_d89a_bee83a21578d --> a3246e53_c55c_1cf0_424d_b2142e1739ab
  c2fa7225_1ddd_1cbc_8810_ee5e42af14d6["select"]
  ea426ab4_c17e_371c_d89a_bee83a21578d --> c2fa7225_1ddd_1cbc_8810_ee5e42af14d6
  style ea426ab4_c17e_371c_d89a_bee83a21578d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import { Button } from "@/registry/new-york-v4/ui/button"
import {
  Card,
  CardContent,
  CardDescription,
  CardFooter,
  CardHeader,
  CardTitle,
} from "@/registry/new-york-v4/ui/card"
import { Input } from "@/registry/new-york-v4/ui/input"
import { Label } from "@/registry/new-york-v4/ui/label"
import {
  RadioGroup,
  RadioGroupItem,
} from "@/registry/new-york-v4/ui/radio-group"
import {
  Select,
  SelectContent,
  SelectItem,
  SelectTrigger,
  SelectValue,
} from "@/registry/new-york-v4/ui/select"

const plans = [
  {
    id: "starter",
    name: "Starter Plan",
    description: "Perfect for small businesses.",
    price: "$10",
  },
  {
    id: "pro",
    name: "Pro Plan",
    description: "Advanced features with more storage.",
    price: "$20",
  },
] as const

export function CardsPaymentMethod() {
  return (
    <Card>
      <CardHeader>
        <CardTitle>Payment Method</CardTitle>
        <CardDescription>
          Add a new payment method to your account.
        </CardDescription>
      </CardHeader>
      <CardContent className="flex flex-col gap-6">
        <div className="flex flex-col gap-3">
          <Label htmlFor="name">Name</Label>
          <Input id="name" placeholder="First Last" />
        </div>
        <fieldset className="flex flex-col gap-3">
          <legend className="text-sm font-medium">Plan</legend>
          <p className="text-muted-foreground text-sm">
            Select the plan that best fits your needs.
          </p>
          <RadioGroup defaultValue="starter" className="grid gap-3">
// ... (75 more lines)

Subdomains

Dependencies

  • button
  • card
  • input
  • label
  • radio-group
  • select

Frequently Asked Questions

What does payment-method.tsx do?
payment-method.tsx is a source file in the ui codebase, written in tsx. It belongs to the Internationalization domain, RTLLayout subdomain.
What functions are defined in payment-method.tsx?
payment-method.tsx defines 1 function(s): CardsPaymentMethod.
What does payment-method.tsx depend on?
payment-method.tsx imports 6 module(s): button, card, input, label, radio-group, select.
Where is payment-method.tsx in the architecture?
payment-method.tsx is located at apps/v4/components/cards/payment-method.tsx (domain: Internationalization, subdomain: RTLLayout, directory: apps/v4/components/cards).

Analyze Your Own Codebase

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

Try Supermodel Free