<Input> is a component for inputting values into the state declared by the defineState() function.

import { defineState } from '@morph-data/components';

export const { useName } = defineState({ userName: '' });

<Input state={userName} />

Properties

state
State
required

The State object that binds the input value of the component. Specify the state declared by the defineState() function.

type
string

The type property of the HTML <input> tag.