zakodium-oss / react-science

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

Percentage editor / renderer ? #212

Open lpatiny opened 2 years ago

lpatiny commented 2 years ago

We would need to component to edit and visualize values in percentage. The value itself is stored as a number (0.96) but displayed as 96% and editable as percent also.

We should be able to define the number of digits showed.

stropitek commented 6 months ago

TODO: add a story

An input group which renders the value as a percentage (with the trailing icon showing it's a percentage). But the state is a number between 0 and 1.