{"id":177,"date":"2019-08-24T08:07:21","date_gmt":"2019-08-24T12:07:21","guid":{"rendered":"http:\/\/www.marshall.edu\/website\/?page_id=177"},"modified":"2026-03-02T13:58:13","modified_gmt":"2026-03-02T18:58:13","slug":"accordion","status":"publish","type":"page","link":"https:\/\/www.marshall.edu\/marsha\/accordion\/","title":{"rendered":"Accordion"},"content":{"rendered":"<p>Accordions allow administrators to highlight important details of a section and allow the user to reveal more information if they need it. Use them sparingly \u2014 only a few per page.<\/p>\n<h2>Toggles Wrapper Shortcode<\/h2>\n<p>Use <code>&#091;mu_toggles&#093;<\/code> to wrap a group of <code>&#091;mu_toggle&#093;<\/code> shortcodes.<\/p>\n<h3>mu_toggles Parameters<\/h3>\n<ul>\n<li><strong>Heading Level (heading):<\/strong> Optional. Sets the ARIA heading level for all toggle titles in this group (e.g. <code>h3<\/code> or <code>h4<\/code>). Use this to maintain proper heading hierarchy when the accordion is inside a section that already has headings.<\/li>\n<li><strong>ID (id):<\/strong> Optional. An HTML <code>id<\/code> attribute on the accordion wrapper, useful for anchor links.<\/li>\n<li><strong>Extra Classes (class):<\/strong> Optional. Additional CSS classes on the wrapper.<\/li>\n<\/ul>\n<h2>Toggle Shortcode<\/h2>\n<h3>mu_toggle Parameters<\/h3>\n<ul>\n<li><span class=\"inline bg-red-100 text-red-700 font-bold px-2 py-1 rounded-sm uppercase text-xs mr-2 my-1\">Required<\/span><strong>Title (title): <\/strong>The label displayed when the accordion item is closed. Keep it short and descriptive of the content inside.<\/li>\n<li><strong>Open (open):<\/strong> Optional. Set to <code>true<\/code> to have this item expanded by default. Defaults to <code>false<\/code>.<\/li>\n<li><strong>CTA Link (cta_link):<\/strong> Optional. URL for a call-to-action button displayed at the bottom of the accordion content.<\/li>\n<li><strong>CTA Text (cta_text):<\/strong> Optional. The text for the CTA button. Defaults to <code>Learn More<\/code>.<\/li>\n<li><strong>Anchor (anchor):<\/strong> Optional. An anchor ID on this specific toggle item for deep linking directly to it.<\/li>\n<\/ul>\n\n\n\n<div class=\"flex flex-wrap justify-center items-stretch gap-8 cards-per-row-2\">\n\t\n\n\t\t\t<div class=\"card flex flex-col rounded-lg overflow-hidden relative transition-all duration-200 ease-out shadow-sm self-stretch\">\n\t\n\t\t\t\t<div class=\"absolute top-0 left-0 right-0 h-1 bg-linear-to-r from-green to-green-bright\"><\/div>\n\n\t\t<div class=\"p-6 pb-0 pt-7 bg-gray-50\">\n\t\t\t\t\t\t\t<div class=\"inline-flex items-center justify-center w-10 h-10 rounded-lg mb-4 bg-green\/10\">\n\t\t\t\t\t<svg data-slot=\"icon\" class=\"h-[18px] w-[18px] shrink-0 text-green\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M20 6 9 17l-5-5\"\/><\/svg>\n\t\t\t\t<\/div>\n\t\t\t\n\t\t\t<div class=\"uppercase font-bold text-lg tracking-wider leading-tight text-gray-900\">\n\t\t\t\tDos\n\t\t\t<\/div>\n\n\t\t\t<div class=\"h-0.75 mt-4 w-10 bg-green\"><\/div>\n\t\t<\/div>\n\n\t\t\n\t\t<div class=\"px-6 pt-4 pb-7 flex flex-1 flex-col styled-list text-[15px] bg-gray-50 text-gray-500\">\n\t\t\t\t\t\t\t<div class=\"flex-1\">\n<ul>\n<li>Keep accordion titles short and descriptive<\/li>\n<li>Only use a few accordions per page<\/li>\n<li>Use the <code>heading<\/code> attr to maintain proper heading hierarchy<\/li>\n<li>Use accordions for supplemental detail users may not always need<\/li>\n<\/ul>\n<\/div>\n\t\t\t\t\t<\/div>\n\n\t\t\n\t\t\n\t\t\t<\/div>\n\t\n\n\t\t\t<div class=\"card flex flex-col rounded-lg overflow-hidden relative transition-all duration-200 ease-out shadow-sm self-stretch\">\n\t\n\t\t\t\t<div class=\"absolute top-0 left-0 right-0 h-1 bg-linear-to-r from-green to-green-bright\"><\/div>\n\n\t\t<div class=\"p-6 pb-0 pt-7 bg-gray-50\">\n\t\t\t\t\t\t\t<div class=\"inline-flex items-center justify-center w-10 h-10 rounded-lg mb-4 bg-green\/10\">\n\t\t\t\t\t<svg data-slot=\"icon\" class=\"h-[18px] w-[18px] shrink-0 text-green\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"10\"\/><path d=\"M4.929 4.929 19.07 19.071\"\/><\/svg>\n\t\t\t\t<\/div>\n\t\t\t\n\t\t\t<div class=\"uppercase font-bold text-lg tracking-wider leading-tight text-gray-900\">\n\t\t\t\tDon&#039;ts\n\t\t\t<\/div>\n\n\t\t\t<div class=\"h-0.75 mt-4 w-10 bg-green\"><\/div>\n\t\t<\/div>\n\n\t\t\n\t\t<div class=\"px-6 pt-4 pb-7 flex flex-1 flex-col styled-list text-[15px] bg-gray-50 text-gray-500\">\n\t\t\t\t\t\t\t<div class=\"flex-1\">\n<ul>\n<li>Put large sections of content in an accordion<\/li>\n<li>Nest accordions within each other<\/li>\n<li>Use accordions to hide content that should always be visible<\/li>\n<\/ul>\n<\/div>\n\t\t\t\t\t<\/div>\n\n\t\t\n\t\t\n\t\t\t<\/div>\n\t\n\n<\/div>\n\n<h2>Accordion Shortcode Examples<\/h2>\n<h3>Default Accordion<\/h3>\n\n<div x-data=\"{ copied: false, rawCode: '' }\" x-init=\"rawCode = $refs.codeSource.textContent\" class=\"mb-12\">\n\n\t\t\t<div class=\"px-6 py-6 border border-b-0 rounded-t-lg border-gray-200 bg-white\">\n\t\t\t                                            \n        \n    <div\n        id=\"first-toggle-item\"\n        x-data=\"accordion('first-toggle-item', false)\"\n        class=\"rounded-lg overflow-hidden mb-2 transition-all duration-300 ease-out bg-gray-50\"\n        x-bind:class=\"expanded ? 'bg-white shadow-md' : 'bg-gray-50'\"\n    >\n        <button\n            class=\"w-full flex justify-between items-center p-5 cursor-pointer border-0 text-left transition-all duration-300 ease-out bg-transparent outline-2 outline-transparent text-gray-700 hover:bg-gray-100 focus:outline-green\"\n            x-on:click=\"expanded = !expanded\"\n            x-on:keydown.escape=\"expanded = false\"\n            x-bind:aria-expanded=\"expanded\"\n            x-bind:class=\"expanded ? 'text-green' : ''\"\n            id=\"first-toggle-item-button\"\n            aria-controls=\"first-toggle-item-panel\"\n                    >\n            <div class=\"text-left font-bold contrast-more:font-black tracking-wide text-base lg:text-lg hc:text-gray-900 contrast-more:text-gray-900\">\n                First Toggle Item\n            <\/div>\n\n            <span class=\"ml-3\">\n                <svg class=\"h-5 w-5 transition-transform duration-300 ease-out stroke-gray-400 shrink-0\"\n                     x-bind:class=\"{ 'rotate-180': expanded }\"\n                     aria-hidden=\"true\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n                    <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" d=\"M19 9l-7 7-7-7\"><\/path>\n                <\/svg>\n            <\/span>\n        <\/button>\n\n        <div\n            id=\"first-toggle-item-panel\"\n            role=\"region\"\n            aria-labelledby=\"first-toggle-item-button\"\n            x-show=\"expanded\"\n            x-collapse\n            x-cloak\n        >\n            <div class=\"text-gray-700  bg-white py-6 px-5 styled-list\">\n                This is our first toggle content.\n\n                            <\/div>\n        <\/div>\n    <\/div>\n        \n    <div\n        id=\"second-toggle-item-2\"\n        x-data=\"accordion('second-toggle-item-2', false)\"\n        class=\"rounded-lg overflow-hidden mb-2 transition-all duration-300 ease-out bg-gray-50\"\n        x-bind:class=\"expanded ? 'bg-white shadow-md' : 'bg-gray-50'\"\n    >\n        <button\n            class=\"w-full flex justify-between items-center p-5 cursor-pointer border-0 text-left transition-all duration-300 ease-out bg-transparent outline-2 outline-transparent text-gray-700 hover:bg-gray-100 focus:outline-green\"\n            x-on:click=\"expanded = !expanded\"\n            x-on:keydown.escape=\"expanded = false\"\n            x-bind:aria-expanded=\"expanded\"\n            x-bind:class=\"expanded ? 'text-green' : ''\"\n            id=\"second-toggle-item-2-button\"\n            aria-controls=\"second-toggle-item-2-panel\"\n                    >\n            <div class=\"text-left font-bold contrast-more:font-black tracking-wide text-base lg:text-lg hc:text-gray-900 contrast-more:text-gray-900\">\n                Second Toggle Item\n            <\/div>\n\n            <span class=\"ml-3\">\n                <svg class=\"h-5 w-5 transition-transform duration-300 ease-out stroke-gray-400 shrink-0\"\n                     x-bind:class=\"{ 'rotate-180': expanded }\"\n                     aria-hidden=\"true\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n                    <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" d=\"M19 9l-7 7-7-7\"><\/path>\n                <\/svg>\n            <\/span>\n        <\/button>\n\n        <div\n            id=\"second-toggle-item-2-panel\"\n            role=\"region\"\n            aria-labelledby=\"second-toggle-item-2-button\"\n            x-show=\"expanded\"\n            x-collapse\n            x-cloak\n        >\n            <div class=\"text-gray-700  bg-white py-6 px-5 styled-list\">\n                This is our second toggle content.\n\n                            <\/div>\n        <\/div>\n    <\/div>\n        \n    <div\n        id=\"third-toggle-item-3\"\n        x-data=\"accordion('third-toggle-item-3', false)\"\n        class=\"rounded-lg overflow-hidden mb-2 transition-all duration-300 ease-out bg-gray-50\"\n        x-bind:class=\"expanded ? 'bg-white shadow-md' : 'bg-gray-50'\"\n    >\n        <button\n            class=\"w-full flex justify-between items-center p-5 cursor-pointer border-0 text-left transition-all duration-300 ease-out bg-transparent outline-2 outline-transparent text-gray-700 hover:bg-gray-100 focus:outline-green\"\n            x-on:click=\"expanded = !expanded\"\n            x-on:keydown.escape=\"expanded = false\"\n            x-bind:aria-expanded=\"expanded\"\n            x-bind:class=\"expanded ? 'text-green' : ''\"\n            id=\"third-toggle-item-3-button\"\n            aria-controls=\"third-toggle-item-3-panel\"\n                    >\n            <div class=\"text-left font-bold contrast-more:font-black tracking-wide text-base lg:text-lg hc:text-gray-900 contrast-more:text-gray-900\">\n                Third Toggle Item\n            <\/div>\n\n            <span class=\"ml-3\">\n                <svg class=\"h-5 w-5 transition-transform duration-300 ease-out stroke-gray-400 shrink-0\"\n                     x-bind:class=\"{ 'rotate-180': expanded }\"\n                     aria-hidden=\"true\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n                    <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" d=\"M19 9l-7 7-7-7\"><\/path>\n                <\/svg>\n            <\/span>\n        <\/button>\n\n        <div\n            id=\"third-toggle-item-3-panel\"\n            role=\"region\"\n            aria-labelledby=\"third-toggle-item-3-button\"\n            x-show=\"expanded\"\n            x-collapse\n            x-cloak\n        >\n            <div class=\"text-gray-700  bg-white py-6 px-5 styled-list\">\n                This is our third toggle content.\n\n                            <\/div>\n        <\/div>\n    <\/div>\n\n\t\t<\/div>\n\t\n\t<div class=\"\">\n\t\t<div class=\"flex items-center justify-between px-4 py-2.5\" style=\"background: #181825; border-bottom: 1px solid rgba(255,255,255,.06);\">\n\t\t\t<span class=\"text-[11px] font-medium tracking-wide text-white\/40\" style=\"font-family: 'JetBrains Mono', ui-monospace, monospace;\">Shortcode<\/span>\n\t\t\t<button\n\t\t\t\ttype=\"button\"\n\t\t\t\t@click=\"navigator.clipboard.writeText(rawCode); copied = true; setTimeout(() => copied = false, 2000)\"\n\t\t\t\tclass=\"flex items-center gap-1.5 px-3 py-1.5 rounded text-[11px] font-medium cursor-pointer transition-all duration-150\"\n\t\t\t\t:class=\"copied\n\t\t\t\t\t? 'bg-green\/20 text-green border border-green\/30'\n\t\t\t\t\t: 'bg-white\/8 text-white\/60 border border-white\/10 hover:bg-white\/14 hover:text-white\/90'\"\n\t\t\t\tstyle=\"font-family: 'JetBrains Mono', ui-monospace, monospace;\"\n\t\t\t>\n\t\t\t\t<template x-if=\"!copied\">\n\t\t\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"h-3.5 w-3.5\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n\t\t\t\t\t\t<rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\"\/>\n\t\t\t\t\t\t<path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"\/>\n\t\t\t\t\t<\/svg>\n\t\t\t\t<\/template>\n\t\t\t\t<template x-if=\"copied\">\n\t\t\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"h-3.5 w-3.5\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n\t\t\t\t\t\t<polyline points=\"20 6 9 17 4 12\"\/>\n\t\t\t\t\t<\/svg>\n\t\t\t\t<\/template>\n\t\t\t\t<span x-text=\"copied ? 'Copied!' : 'Copy'\"><\/span>\n\t\t\t<\/button>\n\t\t<\/div>\n\t\t<div class=\"rounded-b-lg overflow-x-auto\" style=\"background: #1e1e2e;\">\n\t\t\t<pre class=\"px-5 py-4\"><code x-ref=\"codeSource\" class=\"language-bbcode text-[13px] leading-relaxed\" style=\"font-family: 'JetBrains Mono', ui-monospace, monospace; color: #cdd6f4;\">[mu_toggles]\n[mu_toggle title=&quot;First Toggle Item&quot;]This is our first toggle content.[\/mu_toggle]\n[mu_toggle title=&quot;Second Toggle Item&quot;]This is our second toggle content.[\/mu_toggle]\n[mu_toggle title=&quot;Third Toggle Item&quot;]This is our third toggle content.[\/mu_toggle]\n[\/mu_toggles]<\/code><\/pre>\n\t\t<\/div>\n\t<\/div>\n\n<\/div>\n\n<h3>Accordion with One Item Open by Default<\/h3>\n\n<div x-data=\"{ copied: false, rawCode: '' }\" x-init=\"rawCode = $refs.codeSource.textContent\" class=\"mb-12\">\n\n\t\t\t<div class=\"px-6 py-6 border border-b-0 rounded-t-lg border-gray-200 bg-white\">\n\t\t\t                                            \n        \n    <div\n        id=\"this-item-starts-open\"\n        x-data=\"accordion('this-item-starts-open', true)\"\n        class=\"rounded-lg overflow-hidden mb-2 transition-all duration-300 ease-out bg-gray-50\"\n        x-bind:class=\"expanded ? 'bg-white shadow-md' : 'bg-gray-50'\"\n    >\n        <button\n            class=\"w-full flex justify-between items-center p-5 cursor-pointer border-0 text-left transition-all duration-300 ease-out bg-transparent outline-2 outline-transparent text-gray-700 hover:bg-gray-100 focus:outline-green\"\n            x-on:click=\"expanded = !expanded\"\n            x-on:keydown.escape=\"expanded = false\"\n            x-bind:aria-expanded=\"expanded\"\n            x-bind:class=\"expanded ? 'text-green' : ''\"\n            id=\"this-item-starts-open-button\"\n            aria-controls=\"this-item-starts-open-panel\"\n                    >\n            <div class=\"text-left font-bold contrast-more:font-black tracking-wide text-base lg:text-lg hc:text-gray-900 contrast-more:text-gray-900\">\n                This item starts open\n            <\/div>\n\n            <span class=\"ml-3\">\n                <svg class=\"h-5 w-5 transition-transform duration-300 ease-out stroke-gray-400 shrink-0\"\n                     x-bind:class=\"{ 'rotate-180': expanded }\"\n                     aria-hidden=\"true\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n                    <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" d=\"M19 9l-7 7-7-7\"><\/path>\n                <\/svg>\n            <\/span>\n        <\/button>\n\n        <div\n            id=\"this-item-starts-open-panel\"\n            role=\"region\"\n            aria-labelledby=\"this-item-starts-open-button\"\n            x-show=\"expanded\"\n            x-collapse\n            x-cloak\n        >\n            <div class=\"text-gray-700  bg-white py-6 px-5 styled-list\">\n                This content is visible when the page loads.\n\n                            <\/div>\n        <\/div>\n    <\/div>\n        \n    <div\n        id=\"this-item-starts-closed-2\"\n        x-data=\"accordion('this-item-starts-closed-2', false)\"\n        class=\"rounded-lg overflow-hidden mb-2 transition-all duration-300 ease-out bg-gray-50\"\n        x-bind:class=\"expanded ? 'bg-white shadow-md' : 'bg-gray-50'\"\n    >\n        <button\n            class=\"w-full flex justify-between items-center p-5 cursor-pointer border-0 text-left transition-all duration-300 ease-out bg-transparent outline-2 outline-transparent text-gray-700 hover:bg-gray-100 focus:outline-green\"\n            x-on:click=\"expanded = !expanded\"\n            x-on:keydown.escape=\"expanded = false\"\n            x-bind:aria-expanded=\"expanded\"\n            x-bind:class=\"expanded ? 'text-green' : ''\"\n            id=\"this-item-starts-closed-2-button\"\n            aria-controls=\"this-item-starts-closed-2-panel\"\n                    >\n            <div class=\"text-left font-bold contrast-more:font-black tracking-wide text-base lg:text-lg hc:text-gray-900 contrast-more:text-gray-900\">\n                This item starts closed\n            <\/div>\n\n            <span class=\"ml-3\">\n                <svg class=\"h-5 w-5 transition-transform duration-300 ease-out stroke-gray-400 shrink-0\"\n                     x-bind:class=\"{ 'rotate-180': expanded }\"\n                     aria-hidden=\"true\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n                    <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" d=\"M19 9l-7 7-7-7\"><\/path>\n                <\/svg>\n            <\/span>\n        <\/button>\n\n        <div\n            id=\"this-item-starts-closed-2-panel\"\n            role=\"region\"\n            aria-labelledby=\"this-item-starts-closed-2-button\"\n            x-show=\"expanded\"\n            x-collapse\n            x-cloak\n        >\n            <div class=\"text-gray-700  bg-white py-6 px-5 styled-list\">\n                This content requires a click to reveal.\n\n                            <\/div>\n        <\/div>\n    <\/div>\n\n\t\t<\/div>\n\t\n\t<div class=\"\">\n\t\t<div class=\"flex items-center justify-between px-4 py-2.5\" style=\"background: #181825; border-bottom: 1px solid rgba(255,255,255,.06);\">\n\t\t\t<span class=\"text-[11px] font-medium tracking-wide text-white\/40\" style=\"font-family: 'JetBrains Mono', ui-monospace, monospace;\">Shortcode<\/span>\n\t\t\t<button\n\t\t\t\ttype=\"button\"\n\t\t\t\t@click=\"navigator.clipboard.writeText(rawCode); copied = true; setTimeout(() => copied = false, 2000)\"\n\t\t\t\tclass=\"flex items-center gap-1.5 px-3 py-1.5 rounded text-[11px] font-medium cursor-pointer transition-all duration-150\"\n\t\t\t\t:class=\"copied\n\t\t\t\t\t? 'bg-green\/20 text-green border border-green\/30'\n\t\t\t\t\t: 'bg-white\/8 text-white\/60 border border-white\/10 hover:bg-white\/14 hover:text-white\/90'\"\n\t\t\t\tstyle=\"font-family: 'JetBrains Mono', ui-monospace, monospace;\"\n\t\t\t>\n\t\t\t\t<template x-if=\"!copied\">\n\t\t\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"h-3.5 w-3.5\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n\t\t\t\t\t\t<rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\"\/>\n\t\t\t\t\t\t<path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"\/>\n\t\t\t\t\t<\/svg>\n\t\t\t\t<\/template>\n\t\t\t\t<template x-if=\"copied\">\n\t\t\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"h-3.5 w-3.5\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n\t\t\t\t\t\t<polyline points=\"20 6 9 17 4 12\"\/>\n\t\t\t\t\t<\/svg>\n\t\t\t\t<\/template>\n\t\t\t\t<span x-text=\"copied ? 'Copied!' : 'Copy'\"><\/span>\n\t\t\t<\/button>\n\t\t<\/div>\n\t\t<div class=\"rounded-b-lg overflow-x-auto\" style=\"background: #1e1e2e;\">\n\t\t\t<pre class=\"px-5 py-4\"><code x-ref=\"codeSource\" class=\"language-bbcode text-[13px] leading-relaxed\" style=\"font-family: 'JetBrains Mono', ui-monospace, monospace; color: #cdd6f4;\">[mu_toggles]\n[mu_toggle title=&quot;This item starts open&quot; open=&quot;true&quot;]This content is visible when the page loads.[\/mu_toggle]\n[mu_toggle title=&quot;This item starts closed&quot;]This content requires a click to reveal.[\/mu_toggle]\n[\/mu_toggles]<\/code><\/pre>\n\t\t<\/div>\n\t<\/div>\n\n<\/div>\n\n<h3>Accordion with Call-to-Action Button<\/h3>\n\n<div x-data=\"{ copied: false, rawCode: '' }\" x-init=\"rawCode = $refs.codeSource.textContent\" class=\"mb-12\">\n\n\t\t\t<div class=\"px-6 py-6 border border-b-0 rounded-t-lg border-gray-200 bg-white\">\n\t\t\t                                            \n        \n    <div\n        id=\"graduate-admissions-requirements\"\n        x-data=\"accordion('graduate-admissions-requirements', false)\"\n        class=\"rounded-lg overflow-hidden mb-2 transition-all duration-300 ease-out bg-gray-50\"\n        x-bind:class=\"expanded ? 'bg-white shadow-md' : 'bg-gray-50'\"\n    >\n        <button\n            class=\"w-full flex justify-between items-center p-5 cursor-pointer border-0 text-left transition-all duration-300 ease-out bg-transparent outline-2 outline-transparent text-gray-700 hover:bg-gray-100 focus:outline-green\"\n            x-on:click=\"expanded = !expanded\"\n            x-on:keydown.escape=\"expanded = false\"\n            x-bind:aria-expanded=\"expanded\"\n            x-bind:class=\"expanded ? 'text-green' : ''\"\n            id=\"graduate-admissions-requirements-button\"\n            aria-controls=\"graduate-admissions-requirements-panel\"\n                    >\n            <div class=\"text-left font-bold contrast-more:font-black tracking-wide text-base lg:text-lg hc:text-gray-900 contrast-more:text-gray-900\">\n                Graduate Admissions Requirements\n            <\/div>\n\n            <span class=\"ml-3\">\n                <svg class=\"h-5 w-5 transition-transform duration-300 ease-out stroke-gray-400 shrink-0\"\n                     x-bind:class=\"{ 'rotate-180': expanded }\"\n                     aria-hidden=\"true\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\">\n                    <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" d=\"M19 9l-7 7-7-7\"><\/path>\n                <\/svg>\n            <\/span>\n        <\/button>\n\n        <div\n            id=\"graduate-admissions-requirements-panel\"\n            role=\"region\"\n            aria-labelledby=\"graduate-admissions-requirements-button\"\n            x-show=\"expanded\"\n            x-collapse\n            x-cloak\n        >\n            <div class=\"text-gray-700  bg-white py-6 px-5 styled-list\">\n                Review the requirements below before submitting your application.\n\n                                    <div class=\"mt-6\">\n                        \t\t<a href=\"https:\/\/www.marshall.edu\/admissions\/apply\/\" target=\"_self\" class=\"button btn-green \">\n\t\t<span>Apply Now<\/span>\n\t<\/a>\n\t\n                    <\/div>\n                            <\/div>\n        <\/div>\n    <\/div>\n\n\t\t<\/div>\n\t\n\t<div class=\"\">\n\t\t<div class=\"flex items-center justify-between px-4 py-2.5\" style=\"background: #181825; border-bottom: 1px solid rgba(255,255,255,.06);\">\n\t\t\t<span class=\"text-[11px] font-medium tracking-wide text-white\/40\" style=\"font-family: 'JetBrains Mono', ui-monospace, monospace;\">Shortcode<\/span>\n\t\t\t<button\n\t\t\t\ttype=\"button\"\n\t\t\t\t@click=\"navigator.clipboard.writeText(rawCode); copied = true; setTimeout(() => copied = false, 2000)\"\n\t\t\t\tclass=\"flex items-center gap-1.5 px-3 py-1.5 rounded text-[11px] font-medium cursor-pointer transition-all duration-150\"\n\t\t\t\t:class=\"copied\n\t\t\t\t\t? 'bg-green\/20 text-green border border-green\/30'\n\t\t\t\t\t: 'bg-white\/8 text-white\/60 border border-white\/10 hover:bg-white\/14 hover:text-white\/90'\"\n\t\t\t\tstyle=\"font-family: 'JetBrains Mono', ui-monospace, monospace;\"\n\t\t\t>\n\t\t\t\t<template x-if=\"!copied\">\n\t\t\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"h-3.5 w-3.5\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n\t\t\t\t\t\t<rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\"\/>\n\t\t\t\t\t\t<path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"\/>\n\t\t\t\t\t<\/svg>\n\t\t\t\t<\/template>\n\t\t\t\t<template x-if=\"copied\">\n\t\t\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"h-3.5 w-3.5\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n\t\t\t\t\t\t<polyline points=\"20 6 9 17 4 12\"\/>\n\t\t\t\t\t<\/svg>\n\t\t\t\t<\/template>\n\t\t\t\t<span x-text=\"copied ? 'Copied!' : 'Copy'\"><\/span>\n\t\t\t<\/button>\n\t\t<\/div>\n\t\t<div class=\"rounded-b-lg overflow-x-auto\" style=\"background: #1e1e2e;\">\n\t\t\t<pre class=\"px-5 py-4\"><code x-ref=\"codeSource\" class=\"language-bbcode text-[13px] leading-relaxed\" style=\"font-family: 'JetBrains Mono', ui-monospace, monospace; color: #cdd6f4;\">[mu_toggles]\n[mu_toggle title=&quot;Graduate Admissions Requirements&quot; cta_link=&quot;https:\/\/www.marshall.edu\/admissions\/apply\/&quot; cta_text=&quot;Apply Now&quot;]Review the requirements below before submitting your application.[\/mu_toggle]\n[\/mu_toggles]<\/code><\/pre>\n\t\t<\/div>\n\t<\/div>\n\n<\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>Accordions allow administrators to highlight important details of a section and allow the user to reveal more information if they need it. Use them sparingly \u2014 only a few per page. Toggles Wrapper Shortcode Use &#091;mu_toggles&#093; to wrap a group of &#091;mu_toggle&#093; shortcodes. mu_toggles Parameters Heading Level (heading): Optional. Sets the ARIA heading level for<\/p>\n","protected":false},"author":203,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"page-sidebar-left.php","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-177","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.marshall.edu\/marsha\/wp-json\/wp\/v2\/pages\/177","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.marshall.edu\/marsha\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.marshall.edu\/marsha\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.marshall.edu\/marsha\/wp-json\/wp\/v2\/users\/203"}],"replies":[{"embeddable":true,"href":"https:\/\/www.marshall.edu\/marsha\/wp-json\/wp\/v2\/comments?post=177"}],"version-history":[{"count":6,"href":"https:\/\/www.marshall.edu\/marsha\/wp-json\/wp\/v2\/pages\/177\/revisions"}],"predecessor-version":[{"id":850,"href":"https:\/\/www.marshall.edu\/marsha\/wp-json\/wp\/v2\/pages\/177\/revisions\/850"}],"wp:attachment":[{"href":"https:\/\/www.marshall.edu\/marsha\/wp-json\/wp\/v2\/media?parent=177"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}