The React Octicon components support the className prop, which makes it easy to apply custom styles to them. However, sometimes class-based styling is insufficient, such as when you need a fully dynamic style. For this, the style attribute is very important.
An example of its use might be when defining a dynamic icon color:
<SparkleFillIcon style={{color: ...}} />