Become a member
to unlock all features

Create egghead account to access 5000+ tutorials and resources from expert developers.

Create account

    Use the `attrs` method to add HTML attributes in styled-components


    In this lesson, we will learn about the attrs method that allows us to change and add attributes to our styled elements.

    We will use to add some defaults for the type of a button.