Add Icon to Header in Blazor Accordion Component

28 Dec 20238 minutes to read

The icon custom css class can be added to the Accordion header using the IconCss property, and also css styles can be added to the defined class. The accordion icon element is rendered before the header text in the DOM element.

@using Syncfusion.Blazor.Navigations

<SfAccordion>
    <AccordionItems>
        <AccordionItem Header="Athletics" IconCss="e-athletics e-acrdn-icons" Expanded="true">
            <ContentTemplate>
                <ul>
                    <li><span class="e-acrdn-icons e-content-icon marathon"></span> Marathon</li>
                    <li><span class="e-acrdn-icons e-content-icon javelin"></span> Javelin Throw</li>
                    <li><span class="e-acrdn-icons e-content-icon discus"></span> Discus Throw</li>
                    <li><span class="e-acrdn-icons e-content-icon highjump"></span> High Jump</li>
                    <li><span class="e-acrdn-icons e-content-icon longjump"></span> Long Jump</li>
                </ul>
            </ContentTemplate>
        </AccordionItem>
        <AccordionItem Header="Water Games" IconCss="e-water-game e-acrdn-icons">
            <ContentTemplate>
                <ul>
                    <li><span class="e-acrdn-icons e-content-icon dive"></span> Diving</li>
                    <li><span class="e-acrdn-icons e-content-icon swimming"></span> Swimming</li>
                    <li><span class="e-acrdn-icons e-content-icon marathan_swim"></span> Marathon Swimming</li>
                    <li><span class="e-acrdn-icons e-content-icon sync_swim"></span> Synchronized Swimming</li>
                    <li><span class="e-acrdn-icons e-content-icon waterpolo"></span> Water Polo</li>
                </ul>
            </ContentTemplate>
        </AccordionItem>
        <AccordionItem Header="Racing" IconCss="e-racing-games e-acrdn-icons">
            <ContentTemplate>
                <ul>
                    <li><span class="e-acrdn-icons e-content-icon cycle_BMX"></span> Cycling BMX</li>
                    <li> <span class="e-acrdn-icons e-content-icon cycle_Mountain"></span> Cycling Mountain Bike</li>
                    <li> <span class="e-acrdn-icons e-content-icon cycle"></span> Cycle Racing</li>
                    <li> <span class="e-acrdn-icons e-content-icon sailing"></span> Sailing</li>
                    <li> <span class="e-acrdn-icons e-content-icon rowing"></span> Rowing</li>
                </ul>
            </ContentTemplate>
        </AccordionItem>
        <AccordionItem Header="Indoor Games" IconCss="e-indoor-games e-acrdn-icons">
            <ContentTemplate>
                <ul>
                    <li><span class="e-acrdn-icons e-content-icon tennis"></span> Table Tennis</li>
                    <li> <span class="e-acrdn-icons e-content-icon badminton"></span> Badminton</li>
                    <li> <span class="e-acrdn-icons e-content-icon volleyball"></span> Volleyball</li>
                    <li> <span class="e-acrdn-icons e-content-icon boxing"></span> Boxing</li>
                    <li> <span class="e-acrdn-icons e-content-icon swimming_In"></span> Swimming</li>
                </ul>
            </ContentTemplate>
        </AccordionItem>
    </AccordionItems>
</SfAccordion>

<style>
    @@font-face {
        font-family: 'acrdn-icons';
        src: url(data:application/x-font-ttf;charset=utf-8;base64,AAEAAAAKAIAAAwAgT1MvMj0gSSYAAAEoAAAAVmNtYXDnn+g2AAAB5AAAAGRnbHlmslgPRQAAAnwAABvMaGVhZA6+wXwAAADQAAAANmhoZWEHfAOBAAAArAAAACRobXR4YcP/xgAAAYAAAABkbG9jYU2IVXoAAAJIAAAANG1heHABLwC3AAABCAAAACBuYW1lNl/OpQAAHkgAAAKFcG9zdBxr6o4AACDQAAABawABAAADUv9qAFoEAP/i//0D6wABAAAAAAAAAAAAAAAAAAAAGQABAAAAAQAAxGQXJ18PPPUACwPoAAAAANXpvlcAAAAA1em+V//iAAAD6wPpAAAACAACAAAAAAAAAAEAAAAZAKsADAAAAAAAAgAAAAoACgAAAP8AAAAAAAAAAQPpAZAABQAAAnoCvAAAAIwCegK8AAAB4AAxAQIAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABA5wDnFwNS/2oAWgPpAJYAAAABAAAAAAAABAAAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+j/9wPo//AD6AAAA+gAAAPo/+ID6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6P/9A+gAAAAAAAIAAAADAAAAFAADAAEAAAAUAAQAUAAAAAQABAABAADnF///AADnAP//AAAAAQAEAAAAAQACAAMABAAFAAYABwA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1taW5nDERpc2N1c19UaHJvdwZCb3hpbmcGUm93aW5nCUhpZ2hfSnVtcAxJbmRvb3JfR2FtZXMKQ3ljbGVfUmFjZQtXYXRlcl9HYW1lcwdTYWlsaW5nEU1hcmF0aG9uX1N3aW1taW5nCE1hcmF0aG9uBkRpdmluZwlTd2ltbWluZzEJQmFkbWludG9uBlJhY2luZxVTeW5jaHJvbml6ZWRfU3dpbW1pbmcLVm9sbGV5X0JhbGwJQXRobGV0aWNzFEN5Y2xpbmdfTW91bnRhaW5CaWtlCUxvbmdfSnVtcAAAAA==) format('truetype');
        font-weight: normal;
        font-style: normal;
    }

    .e-acrdn-icons {
        font-family: 'acrdn-icons';
        font-size: 16px;
    }

    .cycle_BMX::before {
        content: "\e702"
    }

    .javelin::before {
        content: "\e700";
    }

    .marathon::before {
        content: "\e70e";
    }

    .tennis::before {
        content: "\e701";
    }

    .waterpolo::before {
        content: "\e703";
    }

    .swimming::before {
        content: "\e704";
        position: relative;
        top: 5px;
    }

    .discus::before {
        content: "\e705";
    }

    .boxing::before {
        content: "\e706";
    }

    .rowing::before {
        content: "\e707";
    }

    .highjump::before {
        content: "\e708";
    }

    .cycle::before {
        content: "\e70a";
    }

    .sailing::before {
        content: "\e70c";
    }

    .marathan_swim::before {
        content: "\e70d";
    }

    .boxing::before {
        content: "\e706";
    }

    .dive::before {
        content: "\e70f";
    }

    .swimming_In::before {
        content: "\e710";
        position: relative;
        top: 2px;
    }

    .badminton::before {
        content: "\e711";
    }

    .sync_swim::before {
        content: "\e713";
        position: relative;
        top: 3px;
    }

    .volleyball::before {
        content: "\e714";
    }

    .cycle_Mountain::before {
        content: "\e716";
    }

    .longjump::before {
        content: "\e717";
    }

    .e-athletics::before {
        content: "\e715";
    }

    .e-water-game::before {
        content: "\e70b";
    }

    .e-racing-games::before {
        content: "\e712";
    }

    .e-indoor-games::before {
        content: "\e709";
    }

    .e-acrdn-icons:not(.e-icons) {
        padding: 0 16px 0 0;
        vertical-align: middle;
    }

    li {
        line-height: 36px;
        list-style-type: none;
        text-indent: 16px;
    }
</style>

Blazor Accordion Component with Header Icon