Plugins

Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0

InputProps

Props accepted by the standard host input.

Import

import type { InputProps } from "@dartwic/interface-sdk/ui";

Declaration

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;
}

Members

NameTypeRequirementDescription
valuestring | numberOptionalControlled input value.
defaultValuestring | numberOptionalInitial uncontrolled value.
onChangeHostEventHandlerOptionalChange event handler.
placeholderstringOptionalPlaceholder text shown while empty.
typestringOptionalNative input type.
disabledbooleanOptionalDisables interaction.