React Input - Argon

The ArgonInput helps you to create different form elements. It uses MUI InputBase in base and you can use all of the props from MUI InputBase for the ArgonInput component.


The below codes are editable and you can modify them the way you want directly from your browser, please use the green button or the ctrl + s to save the changes.

Demo

// Argon Dashboard 2 MUI Components import ArgonInput from "components/ArgonInput";

Props Information

NameTypeDefaultDescription
size'small''medium''large'mediumChange the ArgonInput size.
errorboolfalseChange the ArgonInput border color to red, its useful when displaying the error messages.
successboolfalseChange the ArgonInput border color to green, its useful when displaying the success messages.
disabledboolfalseMakes the ArgonInput disabled and user can't use it.
HTML5 AttributesYou can also use HTML5 input attributes for the ArgonInput.
MUI PropsYou can pass all of the MUI InputBase props for the ArgonInput as well.

With Icon

// Argon Dashboard 2 MUI Components import ArgonInput from "components/ArgonInput"; import ArgonBox from "components/ArgonBox";

Success/Error

// Argon Dashboard 2 MUI Components import ArgonInput from "components/ArgonInput";

Sizes

// Argon Dashboard 2 MUI Components import ArgonInput from "components/ArgonInput";

Textarea

// Argon Dashboard 2 MUI Components import ArgonInput from "components/ArgonInput";

HTML5 Inputs

// Argon Dashboard 2 MUI Components import ArgonInput from "components/ArgonInput";