Home / File/ accordion-card.tsx — ui Source File

accordion-card.tsx — ui Source File

Architecture documentation for accordion-card.tsx, a tsx file in the ui codebase. 2 imports, 0 dependents.

File tsx DocumentationAtlas Changelog 2 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  8d194468_c86a_9a0a_83c8_2d3a93b0564d["accordion-card.tsx"]
  d1739492_eb83_6264_2d6e_6f7bc15d1caf["accordion"]
  8d194468_c86a_9a0a_83c8_2d3a93b0564d --> d1739492_eb83_6264_2d6e_6f7bc15d1caf
  a3f5dc6c_2f22_a06c_c4d4_d84a4ed2818e["card"]
  8d194468_c86a_9a0a_83c8_2d3a93b0564d --> a3f5dc6c_2f22_a06c_c4d4_d84a4ed2818e
  style 8d194468_c86a_9a0a_83c8_2d3a93b0564d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import {
  Accordion,
  AccordionContent,
  AccordionItem,
  AccordionTrigger,
} from "@/examples/radix/ui/accordion"
import {
  Card,
  CardContent,
  CardDescription,
  CardHeader,
  CardTitle,
} from "@/examples/radix/ui/card"

const items = [
  {
    value: "plans",
    trigger: "What subscription plans do you offer?",
    content:
      "We offer three subscription tiers: Starter ($9/month), Professional ($29/month), and Enterprise ($99/month). Each plan includes increasing storage limits, API access, priority support, and team collaboration features.",
  },
  {
    value: "billing",
    trigger: "How does billing work?",
    content:
      "Billing occurs automatically at the start of each billing cycle. We accept all major credit cards, PayPal, and ACH transfers for enterprise customers. You'll receive an invoice via email after each payment.",
  },
  {
    value: "cancel",
    trigger: "How do I cancel my subscription?",
    content:
      "You can cancel your subscription anytime from your account settings. There are no cancellation fees or penalties. Your access will continue until the end of your current billing period.",
  },
]

export default function AccordionCard() {
  return (
    <Card className="w-full max-w-sm">
      <CardHeader>
        <CardTitle>Subscription & Billing</CardTitle>
        <CardDescription>
          Common questions about your account, plans, payments and
          cancellations.
        </CardDescription>
      </CardHeader>
      <CardContent>
        <Accordion type="single" collapsible defaultValue="plans">
          {items.map((item) => (
            <AccordionItem key={item.value} value={item.value}>
              <AccordionTrigger>{item.trigger}</AccordionTrigger>
              <AccordionContent>{item.content}</AccordionContent>
            </AccordionItem>
          ))}
        </Accordion>
      </CardContent>
    </Card>
  )
}

Subdomains

Functions

Dependencies

  • accordion
  • card

Frequently Asked Questions

What does accordion-card.tsx do?
accordion-card.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, Changelog subdomain.
What functions are defined in accordion-card.tsx?
accordion-card.tsx defines 1 function(s): AccordionCard.
What does accordion-card.tsx depend on?
accordion-card.tsx imports 2 module(s): accordion, card.
Where is accordion-card.tsx in the architecture?
accordion-card.tsx is located at apps/v4/examples/radix/accordion-card.tsx (domain: DocumentationAtlas, subdomain: Changelog, directory: apps/v4/examples/radix).

Analyze Your Own Codebase

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

Try Supermodel Free