Home / Function/ AccordionWithBorders() — ui Function Reference

AccordionWithBorders() — ui Function Reference

Architecture documentation for the AccordionWithBorders() function in accordion-example.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  dac94b06_c2e7_7b40_5f70_18e1fe971157["AccordionWithBorders()"]
  109831b8_6d36_384f_fc0c_f16bc28a4f95["accordion-example.tsx"]
  dac94b06_c2e7_7b40_5f70_18e1fe971157 -->|defined in| 109831b8_6d36_384f_fc0c_f16bc28a4f95
  style dac94b06_c2e7_7b40_5f70_18e1fe971157 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/base/examples/accordion-example.tsx lines 100–153

function AccordionWithBorders() {
  const items = [
    {
      value: "billing",
      trigger: "How does billing work?",
      content:
        "We offer monthly and annual subscription plans. Billing is charged at the beginning of each cycle, and you can cancel anytime. All plans include automatic backups, 24/7 support, and unlimited team members. There are no hidden fees or setup costs.",
    },
    {
      value: "security",
      trigger: "Is my data secure?",
      content:
        "Yes. We use end-to-end encryption, SOC 2 Type II compliance, and regular third-party security audits. All data is encrypted at rest and in transit using industry-standard protocols. We also offer optional two-factor authentication and single sign-on for enterprise customers.",
    },
    {
      value: "integration",
      trigger: "What integrations do you support?",
      content: (
        <>
          <p>
            We integrate with 500+ popular tools including Slack, Zapier,
            Salesforce, HubSpot, and more. You can also build custom
            integrations using our REST API and webhooks.{" "}
          </p>
          <p>
            Our API documentation includes code examples in 10+ programming
            languages.
          </p>
        </>
      ),
    },
  ]

  return (
    <Example title="With Borders">
      <Accordion className="style-lyra:gap-2 style-vega:gap-2 style-nova:gap-2 mx-auto max-w-lg">
        {items.map((item) => (
          <AccordionItem
            key={item.value}
            value={item.value}
            className="style-vega:border style-nova:border style-lyra:border style-vega:rounded-lg style-nova:rounded-lg"
          >
            <AccordionTrigger className="style-nova:px-2.5 style-nova:text-sm style-vega:text-sm style-maia:text-sm style-mira:text-xs style-lyra:px-2 style-lyra:text-xs style-vega:px-4 font-medium">
              {item.trigger}
            </AccordionTrigger>
            <AccordionContent className="text-muted-foreground style-nova:px-2.5 style-nova:text-sm style-lyra:px-2 style-lyra:text-xs style-vega:px-4 style-maia:px-0 style-mira:px-0">
              {item.content}
            </AccordionContent>
          </AccordionItem>
        ))}
      </Accordion>
    </Example>
  )
}

Subdomains

Frequently Asked Questions

What does AccordionWithBorders() do?
AccordionWithBorders() is a function in the ui codebase, defined in apps/v4/registry/bases/base/examples/accordion-example.tsx.
Where is AccordionWithBorders() defined?
AccordionWithBorders() is defined in apps/v4/registry/bases/base/examples/accordion-example.tsx at line 100.

Analyze Your Own Codebase

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

Try Supermodel Free