MoOx / react-topbar-progress-indicator

`topbar` progress indicator as a React component
MIT License
109 stars 6 forks source link

Add an id/class attribute to canvas element #19

Closed adriancoliba closed 3 years ago

adriancoliba commented 3 years ago

Hi, Could you add an id or class to topbar canvas element so that it would be easier to style it? Thank you.

Edit: Nevermind, I've added className: "topbar" to the config and it worked!

vraravam commented 2 years ago

This doesn't seem to work (at least if using in typescript file) - with the following error:

Argument of type '{ barThickness: number; barColors: { '0': any; }; shadowBlur: number; className: string; }' is not assignable to parameter of type 'TopBarConfig'.
  Object literal may only specify known properties, and 'className' does not exist in type 'TopBarConfig'.ts(2345)
MoOx commented 2 years ago

@vraravam PR welcome to add this parameter !