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. 7 imports, 0 dependents.

File tsx ComponentRegistry UIPrimitives 7 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  c9834be7_988c_6c65_3624_1871bbd98007["payment-method.tsx"]
  aae3c3f1_230a_9c11_a663_8bbc3f0ad054["icons"]
  c9834be7_988c_6c65_3624_1871bbd98007 --> aae3c3f1_230a_9c11_a663_8bbc3f0ad054
  aa2f3ec6_f291_3763_88ec_65a3f5ad5939["button"]
  c9834be7_988c_6c65_3624_1871bbd98007 --> aa2f3ec6_f291_3763_88ec_65a3f5ad5939
  95a7752f_4b97_5bde_5d7d_fca03536ac35["card"]
  c9834be7_988c_6c65_3624_1871bbd98007 --> 95a7752f_4b97_5bde_5d7d_fca03536ac35
  2de1d0e1_ab37_e1b0_4ef3_da8c8fa66107["input"]
  c9834be7_988c_6c65_3624_1871bbd98007 --> 2de1d0e1_ab37_e1b0_4ef3_da8c8fa66107
  fa665cdb_5f79_b81a_95ab_12ba182fc175["label"]
  c9834be7_988c_6c65_3624_1871bbd98007 --> fa665cdb_5f79_b81a_95ab_12ba182fc175
  e3816a69_e9ee_ea7d_ed26_21225e55c2ff["radio-group"]
  c9834be7_988c_6c65_3624_1871bbd98007 --> e3816a69_e9ee_ea7d_ed26_21225e55c2ff
  d493776b_8734_5d8d_382d_0f77f309a72b["select"]
  c9834be7_988c_6c65_3624_1871bbd98007 --> d493776b_8734_5d8d_382d_0f77f309a72b
  style c9834be7_988c_6c65_3624_1871bbd98007 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import { Icons } from "@/components/icons"
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 { RadioGroup, RadioGroupItem } from "@/registry/new-york/ui/radio-group"
import {
  Select,
  SelectContent,
  SelectItem,
  SelectTrigger,
  SelectValue,
} from "@/registry/new-york/ui/select"

export function CardsPaymentMethod() {
  return (
    <Card>
      <CardHeader>
        <CardTitle>Payment Method</CardTitle>
        <CardDescription>
          Add a new payment method to your account.
        </CardDescription>
      </CardHeader>
      <CardContent className="grid gap-6">
        <RadioGroup defaultValue="card" className="grid grid-cols-3 gap-4">
          <div>
            <RadioGroupItem
              value="card"
              id="card"
              className="peer sr-only"
              aria-label="Card"
            />
            <Label
              htmlFor="card"
              className="flex flex-col items-center justify-between rounded-md border-2 border-muted bg-transparent p-4 hover:bg-accent hover:text-accent-foreground peer-data-[state=checked]:border-primary [&:has([data-state=checked])]:border-primary"
            >
              <svg
                xmlns="http://www.w3.org/2000/svg"
                viewBox="0 0 24 24"
                fill="none"
                stroke="currentColor"
                strokeLinecap="round"
                strokeLinejoin="round"
                strokeWidth="2"
                className="mb-3 h-6 w-6"
              >
                <rect width="20" height="14" x="2" y="5" rx="2" />
                <path d="M2 10h20" />
              </svg>
              Card
            </Label>
// ... (95 more lines)

Subdomains

Dependencies

  • button
  • card
  • icons
  • 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 ComponentRegistry domain, UIPrimitives 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 7 module(s): button, card, icons, input, label, radio-group, select.
Where is payment-method.tsx in the architecture?
payment-method.tsx is located at deprecated/www/components/cards/payment-method.tsx (domain: ComponentRegistry, subdomain: UIPrimitives, directory: deprecated/www/components/cards).

Analyze Your Own Codebase

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

Try Supermodel Free