Yes you can pass attributes to your components and with them merge them in. Take a look at the following link…
There you will see that in their custom component <x-alert> that they are passing along a class that is then merged with some default classes you choose to have in the component. They show an example where they pass the class mb-4 and it is merged with alert classes to form the full set of classes in the rendered component.