# config.xml how to use a sw-label component or other components

**URL:** <https://forum.shopware.com/t/config-xml-how-to-use-a-sw-label-component-or-other-components/67111>\
**Category:** Programming (EN)\
**Created:** [22. Mai 2020 um 07:12 UTC](https://forum.shopware.com/t/config-xml-how-to-use-a-sw-label-component-or-other-components/67111 "2020-05-22T07:12:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mvb](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@mvb](https://forum.shopware.com/u/mvb)\
**Post date:** [22. Mai 2020 um 07:12 UTC](https://forum.shopware.com/t/config-xml-how-to-use-a-sw-label-component-or-other-components/67111/1 "2020-05-22T07:12:28Z")

</div>

Hi,

I want to use some components ([https://component-library.shopware.com/components/sw-label/](https://component-library.shopware.com/components/sw-label/)) in the backend.

But I don’t know it this is possible if you don’t can’t set the value (or how to fill a slot).

For example I want to use the sw-label, to add some extra visible description text inside a card section (not hidden using a helpText).  
I can set all the variables like variant,&nbsp;but not the: „lorem ipsum dolor sit amet“ text.

```
    Lorem ipsum dolor sit amet

```

custom/plugins/x/src/Resources/config/config.xml

```
    X
    
      testLabel
      danger
      lorem ipsum dolor sit amet don't work
      lorem ipsum dolor sit amet don't work
      lorem ipsum dolor sit amet don't work
      lorem ipsum dolor sit amet don't work

```

What I can do is create my own custom-label component and use that, but there are many other components that needs a value to work.

When I open this file:&nbsp;vendor/shopware/platform/src/Administration/Resources/app/administration/src/app/component/base/sw-label/sw-label.html.twig

```
{% block sw_label %}
    
        {% block sw_label_text_holder %}
            
                {% block sw_label_slot_default %}{% endblock %}
            
        {% endblock %}

        ...
    
{% endblock %}

```

You can see a slot is used for the value.  
But I don’t know how to use that, using config.xml

---

<div class="post-metadata">

**Author:** ![hmhofman](https://avatars.discourse-cdn.com/v4/letter/h/dc4da7/32.png) [@hmhofman](https://forum.shopware.com/u/hmhofman)\
**Post date:** [28. Juli 2020 um 09:13 UTC](https://forum.shopware.com/t/config-xml-how-to-use-a-sw-label-component-or-other-components/67111/2 "2020-07-28T09:13:44Z")

</div>

@mvb‍ &nbsp;I’m struggling with the same problem. Did you find a sollution?&nbsp;

---

<div class="post-metadata">

**Author:** ![NacScha](https://avatars.discourse-cdn.com/v4/letter/n/3bc359/32.png) [@NacScha](https://forum.shopware.com/u/NacScha)\
**Post date:** [30. November 2021 um 07:58 UTC](https://forum.shopware.com/t/config-xml-how-to-use-a-sw-label-component-or-other-components/67111/3 "2021-11-30T07:58:42Z")

</div>

Did you found a solution yet?
