# Managing styles in a Blade component

**URL:** https://discourse.roots.io/t/managing-styles-in-a-blade-component/26309
**Category:** sage
**Tags:** bud, sage10
**Created:** 2023-11-22T09:53:11Z
**Posts:** 3

## Post 1 by @aksld — 2023-11-22T09:53:11Z

Hello,

I’m trying out this doc to create a Blade component.  
It works perfectly.

However, I want to integrate a style sheet into this component.  
The style sheet is dedicated to this component.

I can’t find the right way to do it:

- Create a new entry in my bud file? And use `asset()` ?
- Use this : [Handling the blade @asset directive | bud.js](https://bud.js.org/extensions/sage/blade-assets#adding-scripts-and-styles-to-blade-templates) ?
- Other ?

Thanks for your help :slight_smile:

---

## Post 2 by @aksld — 2023-11-23T07:46:19Z

I’ve tried something, but it hasn’t worked yet:

app.blade.php

```
<style>
		@stack('css')
	</style>

	<script>
		@stack('js')
	</script>
```

In my component :

```
@push('css')
	<link rel="stylesheet" href="<?php echo asset( 'component_older_events' ); ?>">
@endpush
```

On the front I can see the right style. The file is accessible.  
But the CSS doesn’t apply.  
Thank you for your help

---

## Post 3 by @aksld — 2023-11-23T08:44:12Z

I finally managed it by slipping into the .  
Whether this is good practice remains to be seen.
