Component
ArithmeticCouncil
It asks the user to choose whether a submitted amount should be doubled, halved or inverted. The selected ruling changes the actual result rather than merely styling the same value.
Possible use
It could let a reviewer decide whether a handoff estimate deserves twice the time, half the time or a negative amount of time, or let a presenter give an agenda number a ceremonial mathematical verdict.
Reasonable alternative
A reasonable local alternative is applying the needed arithmetic beside the value. A public council turns one expression into a decision ceremony with no policy behind it.
01 / Preview
Try it yourself.
Submitted amount7.25
Awaiting a ruling—
Mechanism
- 1
- Submit the amount 7.25.
- 2
- Choose double, halve or invert.
- 3
- Reopen the case to choose again.
02 / Usage
Put it somewhere.
example.tsxTSX
import { ArithmeticCouncil } from "gra-ui";
import "gra-ui/styles.css";
export function RuledAmount() {
return <ArithmeticCouncil value={7} />;
}03 / API
Small surface area.
PropTypeDescription
valuenumberThe amount submitted to the three-way arithmetic ruling.