Plugins
Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0
Input
Standard text or native typed input.
Import
import { Input } from "@dartwic/interface-sdk/ui";Declaration
export const Input: HostComponent<InputProps>;InputProps
Props accepted by the standard host input.
export interface InputProps extends HostComponentProps {
/** Controlled input value. */
value?: string | number;
/** Initial uncontrolled value. */
defaultValue?: string | number;
/** Change event handler. */
onChange?: HostEventHandler;
/** Placeholder text shown while empty. */
placeholder?: string;
/** Native input type. */
type?: string;
/** Disables interaction. */
disabled?: boolean;
}| Prop | Type | Requirement | Description |
|---|---|---|---|
value | string | number | Optional | Controlled input value. |
defaultValue | string | number | Optional | Initial uncontrolled value. |
onChange | HostEventHandler | Optional | Change event handler. |
placeholder | string | Optional | Placeholder text shown while empty. |
type | string | Optional | Native input type. |
disabled | boolean | Optional | Disables interaction. |