-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #279 from corybantes/feature-176-create-accordion-…
…component feat: create-accordion-component
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
); | ||
} |