Plugins
Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0
FormattedValueInputProps
Numeric value editor selected by a Units formatting directive.
Import
import type { FormattedValueInputProps } from "@dartwic/interface-sdk/ui";Declaration
export interface FormattedValueInputProps extends HostComponentProps {
value: number;
units?: string;
label?: string;
submitLabel?: string;
disabled?: boolean;
onCommit: (value: number) => unknown;
onCancel?: () => void;
trailingAction?: HostNode;
compact?: boolean;
}Members
| Name | Type | Requirement | Description |
|---|---|---|---|
value | number | Required | |
units | string | Optional | |
label | string | Optional | |
submitLabel | string | Optional | |
disabled | boolean | Optional | |
onCommit | (value: number) => unknown | Required | |
onCancel | () => void | Optional | |
trailingAction | HostNode | Optional | |
compact | boolean | Optional |