In some cases, you may want to vary a single element in a component. In those cases add a modifier to the element instead of the component. Iβve found that modifying elements is much less common and less useful than modifying entire components.
UI
BEM - Block, Element, Modifier
Source
<!-- π DO THIS --><figureclassName="photo"><imgclassName="photo__img photo__img--framed"src="https://picsum.photos/400/300"alt=""/><figcaptionclassName="photo__caption photo__caption--large">BEM - Block, Element, Modifier</figcaption></figure><!-- π DON'T DO THIS --><figureclassName="photo photo--framed photo--large"><imgclassName="photo__img"src="https://picsum.photos/400/300"alt=""/><figcaptionclassName="photo__caption">BEM - Block, Element, Modifier</figcaption></figure>