zakodium-oss / react-science

React components and tools to build scientific applications.
https://react-science.pages.dev
MIT License
3 stars 6 forks source link

Toolbar with different intents #591

Closed stropitek closed 10 months ago

stropitek commented 11 months ago

I think it is enough but the issue with the intent it is been applied to the whole toolbar

Originally posted by @hamed-musallam in https://github.com/zakodium-oss/react-science/issues/590#issuecomment-1846846736

stropitek commented 11 months ago

Let's figure out if need each item in the toolbar to have a customisable intent or if we should create multiple toolbar for this purpose.

@hamed-musallam can you provide more info for your use case? Maybe a screenshot of how custom toolbar items are used in NMRium if that is already the case?

wadjih-bencheikh18 commented 11 months ago

We can add intent prop to the toolbarItem