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
  56649d9c_2e74_4770_467c_715b73730f13["accordion-card.tsx"]
  b1a177f1_96cd_6e99_5633_38f2675548fd["accordion"]
  56649d9c_2e74_4770_467c_715b73730f13 --> b1a177f1_96cd_6e99_5633_38f2675548fd
  a66f2388_87f1_5188_51e6_9a4b91cfd618["card"]
  56649d9c_2e74_4770_467c_715b73730f13 --> a66f2388_87f1_5188_51e6_9a4b91cfd618
  style 56649d9c_2e74_4770_467c_715b73730f13 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import {
  Accordion,
  AccordionContent,
  AccordionItem,
  AccordionTrigger,
} from "@/examples/base/ui/accordion"
import {
  Card,
  CardContent,
  CardDescription,
  CardHeader,
  CardTitle,
} from "@/examples/base/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 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/base/accordion-card.tsx (domain: DocumentationAtlas, subdomain: Changelog, directory: apps/v4/examples/base).

Analyze Your Own Codebase

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

Try Supermodel Free