Rahul P
Rahul P

Reputation: 33

Changing colorIndex of grommet components

How do i change the colorIndex of the the components in grommet like icons ,graphs,?

Thanks in advance.

Upvotes: 1

Views: 432

Answers (1)

dukekiwifruit
dukekiwifruit

Reputation: 49

Use the colorIndex property, much the same as you would on other Grommet components.

<Line values={...} max={...} colorIndex='ok' />

The available colors can be found at https://grommet.github.io/docs/color/.

Upvotes: 1

Related Questions