SuiInput
The SuiInput
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 SuiInput
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
// Soft UI Dashboard React components
import SuiInput from "components/SuiInput";
Props Information
Name | Type | Default | Description |
---|---|---|---|
size | 'small''medium''large' | medium | Change the SuiInput size. |
icon | {component: bool | node, direction: ["none", "left", "right"]} | {component: false, direction: "none"} | Used to set an icon on the left or right side of SuiInput . |
error | bool | false | Change the SuiInput border color to red, its useful when displaying the error messages. |
success | bool | false | Change the SuiInput border color to green, its useful when displaying the success messages. |
disabled | bool | false | Makes the SuiInput disabled and user can't use it. |
HTML5 Attributes | You can also use HTML5 input attributes for the SuiInput . | ||
MUI Props | You can pass all of the MUI InputBase props for the SuiInput as well. |
With Icon
// Soft UI Dashboard React components
import SuiInput from "components/SuiInput";
Success/Error
// Soft UI Dashboard React components
import SuiInput from "components/SuiInput";
Sizes
// Soft UI Dashboard React components
import SuiInput from "components/SuiInput";
Textarea
// Soft UI Dashboard React components
import SuiInput from "components/SuiInput";
HTML5 Inputs
// Soft UI Dashboard React components
import SuiInput from "components/SuiInput";