Skip to content

Commit

Permalink
Merge pull request #279 from corybantes/feature-176-create-accordion-…
Browse files Browse the repository at this point in the history
…component

feat: create-accordion-component
  • Loading branch information
SirhmVFX authored Jul 21, 2024
2 parents 3c0a346 + d792f81 commit 9edbc9b
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions app/components/accordionComponent.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "~/components/ui/accordion";

import "~/styles/global.css";

export function AccordionComponent() {
return (
<Accordion
type="single"
collapsible
className="w-full max-w-[588px] rounded-xl bg-primary/5 p-4"
>
<AccordionItem value="item-1">
<AccordionTrigger>What payment method do you accept?</AccordionTrigger>
<AccordionContent>
We accept payment using Visa, Mastercard and American Express.
</AccordionContent>
</AccordionItem>
<AccordionItem value="item-2">
<AccordionTrigger>
Is there a discount for annual subscriptions?
</AccordionTrigger>
<AccordionContent>
Yes. There is a 20% discount for annual subscriptions.
</AccordionContent>
</AccordionItem>
<AccordionItem value="item-3">
<AccordionTrigger>Do you offer a free trial?</AccordionTrigger>
<AccordionContent>
Yes, we offer a 14-day free trial for new users. You can explore all
the features of our premium plan without any cost during this period.
</AccordionContent>
</AccordionItem>
</Accordion>
);
}

0 comments on commit 9edbc9b

Please sign in to comment.