Accordion

Previous Next

A vertically stacked set of interactive headings that each reveal a section of content.

We offer standard (5-7 days), express (2-3 days), and overnight shipping. Free shipping on international orders.
Returns accepted within 30 days. Items must be unused and in original packaging. Refunds processed within 5-7 business days.
Reach us via email, live chat, or phone. We respond within 24 hours during business days.
<Accordion Type="@Accordion.AccordionType.Single" Collapsible="true" DefaultValue="shipping" Class="max-w-lg">
    <AccordionItem Value="shipping">
        <AccordionTrigger>What are your shipping options?</AccordionTrigger>
        <AccordionContent>We offer standard (5-7 days), express (2-3 days), and overnight shipping. Free shipping on international orders.</AccordionContent>
    </AccordionItem>
    <AccordionItem Value="returns">
        <AccordionTrigger>What is your return policy?</AccordionTrigger>
        <AccordionContent>Returns accepted within 30 days. Items must be unused and in original packaging. Refunds processed within 5-7 business days.</AccordionContent>
    </AccordionItem>
    <AccordionItem Value="support">
        <AccordionTrigger>How can I contact customer support?</AccordionTrigger>
        <AccordionContent>Reach us via email, live chat, or phone. We respond within 24 hours during business days.</AccordionContent>
    </AccordionItem>
</Accordion>

Installation

Install the accordion component using the command or manual steps.

blazor-shadcn add accordion

Usage

@using ShadcnBlazor.Components.UI
<Accordion Type="@Accordion.AccordionType.Single" Collapsible="true" DefaultValue="item-1" Class="max-w-lg">
    <AccordionItem Value="item-1">
        <AccordionTrigger>Is it accessible?</AccordionTrigger>
        <AccordionContent>
            Yes. It adheres to the WAI-ARIA design pattern.
        </AccordionContent>
    </AccordionItem>
</Accordion>

Examples

Multiple

Manage how you receive notifications. You can enable email alerts for updates or push notifications for mobile devices.
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.
View your current plan, payment history, and upcoming invoices. Update your payment method, change your subscription tier, or cancel your subscription.
<Accordion Type="@Accordion.AccordionType.Multiple" DefaultValues="@new[] { "notifications" }" Class="max-w-lg">
    <AccordionItem Value="notifications">
        <AccordionTrigger>Notification Settings</AccordionTrigger>
        <AccordionContent>Manage how you receive notifications. You can enable email alerts for updates or push notifications for mobile devices.</AccordionContent>
    </AccordionItem>
    <AccordionItem Value="privacy">
        <AccordionTrigger>Privacy &amp; Security</AccordionTrigger>
        <AccordionContent>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.</AccordionContent>
    </AccordionItem>
    <AccordionItem Value="billing">
        <AccordionTrigger>Billing &amp; Subscription</AccordionTrigger>
        <AccordionContent>View your current plan, payment history, and upcoming invoices. Update your payment method, change your subscription tier, or cancel your subscription.</AccordionContent>
    </AccordionItem>
</Accordion>

Disabled

Yes, you can view your complete account history including all transactions, plan changes, and support tickets in the Account History section of your dashboard.
This section contains information about premium features. Upgrade your plan to access this content.
You can update your email address in your account settings. You'll receive a verification email at your new address to confirm the change.
<Accordion Type="@Accordion.AccordionType.Single" Collapsible="true" Class="max-w-lg">
    <AccordionItem Value="item-1">
        <AccordionTrigger>Can I access my account history?</AccordionTrigger>
        <AccordionContent>Yes, you can view your complete account history including all transactions, plan changes, and support tickets in the Account History section of your dashboard.</AccordionContent>
    </AccordionItem>
    <AccordionItem Value="item-2" Disabled="true">
        <AccordionTrigger>Premium feature information</AccordionTrigger>
        <AccordionContent>This section contains information about premium features. Upgrade your plan to access this content.</AccordionContent>
    </AccordionItem>
    <AccordionItem Value="item-3">
        <AccordionTrigger>How do I update my email address?</AccordionTrigger>
        <AccordionContent>You can update your email address in your account settings. You'll receive a verification email at your new address to confirm the change.</AccordionContent>
    </AccordionItem>
</Accordion>

Borders

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.
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 integrate with 500+ popular tools including Slack, Zapier, Salesforce, HubSpot, and more. You can also build custom integrations using our REST API and webhooks.
<Accordion Type="@Accordion.AccordionType.Single" Collapsible="true" DefaultValue="billing" Class="max-w-lg rounded-lg border">
    <AccordionItem Value="billing" Class="border-b px-4 last:border-b-0">
        <AccordionTrigger>How does billing work?</AccordionTrigger>
        <AccordionContent>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.</AccordionContent>
    </AccordionItem>
    <AccordionItem Value="security" Class="border-b px-4 last:border-b-0">
        <AccordionTrigger>Is my data secure?</AccordionTrigger>
        <AccordionContent>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.</AccordionContent>
    </AccordionItem>
    <AccordionItem Value="integration" Class="border-b px-4 last:border-b-0">
        <AccordionTrigger>What integrations do you support?</AccordionTrigger>
        <AccordionContent>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.</AccordionContent>
    </AccordionItem>
</Accordion>

Card

Subscription & Billing
Common questions about your account, plans, payments and cancellations.
We offer three subscription tiers: Starter ($9/month), Professional ($29/month), and Enterprise ($99/month). Each plan includes increasing storage limits, API access, priority support, and team collaboration features.
Billing occurs automatically at the start of each billing cycle. We accept all major credit cards, PayPal, and ACH transfers for enterprise customers. You'll receive an invoice via email after each payment.
You can cancel your subscription anytime from your account settings. There are no cancellation fees or penalties. Your access will continue until the end of your current billing period.
<Card Class="w-full max-w-sm">
    <CardHeader>
        <CardTitle>Subscription &amp; Billing</CardTitle>
        <CardDescription>Common questions about your account, plans, payments and cancellations.</CardDescription>
    </CardHeader>
    <CardContent>
        <Accordion Type="@Accordion.AccordionType.Single" Collapsible="true" DefaultValue="plans">
            <AccordionItem Value="plans">
                <AccordionTrigger>What subscription plans do you offer?</AccordionTrigger>
                <AccordionContent>We offer three subscription tiers: Starter ($9/month), Professional ($29/month), and Enterprise ($99/month). Each plan includes increasing storage limits, API access, priority support, and team collaboration features.</AccordionContent>
            </AccordionItem>
            <AccordionItem Value="billing">
                <AccordionTrigger>How does billing work?</AccordionTrigger>
                <AccordionContent>Billing occurs automatically at the start of each billing cycle. We accept all major credit cards, PayPal, and ACH transfers for enterprise customers. You'll receive an invoice via email after each payment.</AccordionContent>
            </AccordionItem>
            <AccordionItem Value="cancel">
                <AccordionTrigger>How do I cancel my subscription?</AccordionTrigger>
                <AccordionContent>You can cancel your subscription anytime from your account settings. There are no cancellation fees or penalties. Your access will continue until the end of your current billing period.</AccordionContent>
            </AccordionItem>
        </Accordion>
    </CardContent>
</Card>

API Reference

Prop Type Default
TypeSingle | MultipleSingle
Collapsibleboolfalse
DefaultValuestring?null
DefaultValuesIEnumerable<string>?null
Classstring?null