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, 1 dependents.

File tsx ComponentRegistry UIPrimitives 7 imports 1 dependents 1 functions

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

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 DemoPaymentMethod() {
  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" />
            <Label
              htmlFor="card"
              className="flex flex-col items-center justify-between rounded-md border-2 border-muted bg-popover 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>
          </div>
          <div>
            <RadioGroupItem
              value="paypal"
              id="paypal"
              className="peer sr-only"
            />
// ... (78 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): DemoPaymentMethod.
What does payment-method.tsx depend on?
payment-method.tsx imports 7 module(s): button, card, icons, input, label, radio-group, select.
What files import payment-method.tsx?
payment-method.tsx is imported by 1 file(s): page.tsx.
Where is payment-method.tsx in the architecture?
payment-method.tsx is located at deprecated/www/app/(app)/examples/cards/components/payment-method.tsx (domain: ComponentRegistry, subdomain: UIPrimitives, directory: deprecated/www/app/(app)/examples/cards/components).

Analyze Your Own Codebase

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

Try Supermodel Free