For more examples, visit the Storybook.

Example
    <StudsInput placeholder="Enter text here" />

Props

type
"text" | "password" | "email" | "number" | "search" | "tel" | "url"
default:"text"

The type of input.

placeholder
string

The placeholder text for the input.

disabled
boolean
default:"false"

If true, the input will be disabled.

defaultValue
string

The default value of the input.

value
string

The current value of the input.

onChange
function

Callback function that is called when the value changes.