Skip to content

[Feedback] React components should support style prop #1040

@iansan5653

Description

@iansan5653

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: ...}} />

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions