1 ---
2 generate_toc: true
3 ---
4
5 import { ComponentExample } from "@/components/ComponentExample"
6 import { ComponentReference } from "@/components/ComponentReference"
7
8 export const metadata = {
9 title: `Progress Accordion`,
10 }
11
12 # {metadata.title}
13
14 A component that renders a set of expandable content, specifically designed for implementing multi-step tasks.
15
16 In this guide, you'll learn how to use the Progress Accordion component.
17
18 <ComponentExample name="progress-accordion-demo" />
19
20 ## Usage
21
22 ```tsx
23 import { ProgressAccordion } from "@medusajs/ui"
24 ```
25
26 ```tsx
27 <ProgressAccordion type="single">
28 <ProgressAccordion.Item value="general">
29 <ProgressAccordion.Header>
30 General
31 </ProgressAccordion.Header>
32 <ProgressAccordion.Content>
33 {/* Content */}
34 </ProgressAccordion.Content>
35 </ProgressAccordion.Item>
36 <ProgressAccordion.Item value="shipping">
37 <ProgressAccordion.Header>
38 Shipping
39 </ProgressAccordion.Header>
40 <ProgressAccordion.Content>
41 {/* Content */}
42 </ProgressAccordion.Content>
43 </ProgressAccordion.Item>
44 </ProgressAccordion>
45 ```
46
47 ---
48
49 ## API Reference
50
51 <ComponentReference mainComponent="ProgressAccordion" componentsToShow={[
52 "ProgressAccordion",
53 "ProgressAccordion.Header"
54 ]} />
55
56 ---
57
58 ## Examples
59
60 ### Only One Accordion Open
61
62 <ComponentExample name="progress-accordion-single" />
63
64 ### Allow Multiple Accordions to Open
65
66 <ComponentExample name="progress-accordion-multiple" />
67
68 ### Set Status Indicator
69
70 <ComponentExample name="progress-accordion-status" />
71
72 ### Controlled Accordion Open State
73
74 <ComponentExample name="progress-accordion-controlled" />
75
76 ### Disabled Accordion Item
77
78 <ComponentExample name="progress-accordion-disabled" hideFeedback />