How to add a state layer on a button

Hi!
Does anyone knows how can I add a state layer on a button on Figma?
I saw that Material Design uses it to specify the states (enabled/hovered/focused etc).

Hi, Sofia.

You can do it by making the component a variant.

Make a variant of a component by clicking this button:
image