-
Notifications
You must be signed in to change notification settings - Fork 0
PUIImmutableNumericStatus
Elijah Cobb edited this page May 13, 2021
·
3 revisions
This component displays a numeric status. You can define a specific number of decimal places to display. If you supply a range
, if the value is outside of the range, the text will become PUIColor.red
. Clicking on this component will copy it to the clipboard.
import {PUIImmutableNumericStatus} from "./pstdl-ui";
import {ReactElement, useState} from "react";
export function TestBed(): ReactElement {
const [number, setNumber] = useState(32.871);
return <div className={"TestBed"}>
<PUIImmutableNumericStatus
value={number}
label={"Number"}
range={[20, 40]}
precision={2}
/>
</div>
}
Created by Elijah Cobb at the Planetary Surface Technology Development Lab located at Michigan Technological University
- PUIGage
- PUIImmutableBinaryStatus
- PUIImmutableNumericStatus
- PUILog
- PUIMutableBinaryStatus
- PUIMutableNumericStatus
- PUIPicker
- PUISegmentedPicker
- PUIAlert
- PUIToast
- PUICard
- PUITopBar
- PUIAppController
- PUIKeyboardController
- PUIGamepadController
- PUIHookAlert
- PUIHookLog
- PUIHookState
- PUIHookToast
- PUIApp
- PUIColor
- PUIContext