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

accordion-basic.tsx — ui Source File

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

File tsx DocumentationAtlas ContentSourcing 1 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  9333b69c_9da5_b5af_8ec8_ca3a821c1f6a["accordion-basic.tsx"]
  b1a177f1_96cd_6e99_5633_38f2675548fd["accordion"]
  9333b69c_9da5_b5af_8ec8_ca3a821c1f6a --> b1a177f1_96cd_6e99_5633_38f2675548fd
  style 9333b69c_9da5_b5af_8ec8_ca3a821c1f6a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import {
  Accordion,
  AccordionContent,
  AccordionItem,
  AccordionTrigger,
} from "@/examples/base/ui/accordion"

const items = [
  {
    value: "item-1",
    trigger: "How do I reset my password?",
    content:
      "Click on 'Forgot Password' on the login page, enter your email address, and we'll send you a link to reset your password. The link will expire in 24 hours.",
  },
  {
    value: "item-2",
    trigger: "Can I change my subscription plan?",
    content:
      "Yes, you can upgrade or downgrade your plan at any time from your account settings. Changes will be reflected in your next billing cycle.",
  },
  {
    value: "item-3",
    trigger: "What payment methods do you accept?",
    content:
      "We accept all major credit cards, PayPal, and bank transfers. All payments are processed securely through our payment partners.",
  },
]

export function AccordionBasic() {
  return (
    <Accordion defaultValue={["item-1"]} className="max-w-lg">
      {items.map((item) => (
        <AccordionItem key={item.value} value={item.value}>
          <AccordionTrigger>{item.trigger}</AccordionTrigger>
          <AccordionContent>{item.content}</AccordionContent>
        </AccordionItem>
      ))}
    </Accordion>
  )
}

Subdomains

Functions

Dependencies

  • accordion

Frequently Asked Questions

What does accordion-basic.tsx do?
accordion-basic.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, ContentSourcing subdomain.
What functions are defined in accordion-basic.tsx?
accordion-basic.tsx defines 1 function(s): AccordionBasic.
What does accordion-basic.tsx depend on?
accordion-basic.tsx imports 1 module(s): accordion.
Where is accordion-basic.tsx in the architecture?
accordion-basic.tsx is located at apps/v4/examples/base/accordion-basic.tsx (domain: DocumentationAtlas, subdomain: ContentSourcing, 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