rescript-shadcn
exampleAccordionMultiplesource: ok · refreshed
AccordionMultiple
npx shadcn add "https://rescript-shadcn.miriad.studio/r/AccordionMultiple.json"free
Interaction
accordion
Tags auto-generated by rules on 9/24/2026 — empty means no evidence, not lack of support.
Dependencies
Bundle weight · lightRegistry dependencies
@rescript-shadcn/Accordion@rescript-shadcn/Demo
Files1 · source cached 10/8/2026, 4:36:35 AM
registry/base/examples/AccordionMultiple.res
type item = {
value: string,
trigger: string,
content: string,
}
let items: array<item> = [
{
value: "notifications",
trigger: "Notification Settings",
content: "Manage how you receive notifications. You can enable email alerts for updates or push notifications for mobile devices.",
},
{
value: "privacy",
trigger: "Privacy & Security",
content: "Control your privacy settings and security preferences. Enable two-factor authentication, manage connected devices, review active sessions, and configure data sharing preferences. You can also download your data or delete your account.",
},
{
value: "billing",
trigger: "Billing & Subscription",
content: "View your current plan, payment history, and upcoming invoices. Update your payment method, change your subscription tier, or cancel your subscription.",
},
]
@react.componentWithProps(Demo.Props.t)
let make = ({}: Demo.Props.t) =>
<Accordion.Multiple className="max-w-lg" defaultValue=["notifications"]>
{items
->Array.map(item =>
<Accordion.Item key={item.value} value={item.value}>
<Accordion.Trigger> {item.trigger->React.string} </Accordion.Trigger>
<Accordion.Content> {item.content->React.string} </Accordion.Content>
</Accordion.Item>
)
->React.array}
</Accordion.Multiple>