186 lines
6.8 KiB
JSON
186 lines
6.8 KiB
JSON
|
|
{
|
||
|
|
"props": {
|
||
|
|
"autoComplete": { "type": { "name": "string" } },
|
||
|
|
"autoFocus": { "type": { "name": "bool" } },
|
||
|
|
"classes": { "type": { "name": "object" }, "additionalInfo": { "cssApi": true } },
|
||
|
|
"color": {
|
||
|
|
"type": {
|
||
|
|
"name": "union",
|
||
|
|
"description": "'primary'<br>| 'secondary'<br>| string"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"components": {
|
||
|
|
"type": { "name": "shape", "description": "{ Input?: elementType, Root?: elementType }" },
|
||
|
|
"default": "{}",
|
||
|
|
"deprecated": true,
|
||
|
|
"deprecationInfo": "use the <code>slots</code> prop instead. This prop will be removed in a future major release. See <a href=\"https://mui.com/material-ui/migration/migrating-from-deprecated-apis/\">Migrating from deprecated APIs</a> for more details."
|
||
|
|
},
|
||
|
|
"defaultValue": { "type": { "name": "any" } },
|
||
|
|
"disabled": { "type": { "name": "bool" } },
|
||
|
|
"endAdornment": { "type": { "name": "node" } },
|
||
|
|
"error": { "type": { "name": "bool" } },
|
||
|
|
"fullWidth": { "type": { "name": "bool" }, "default": "false" },
|
||
|
|
"id": { "type": { "name": "string" } },
|
||
|
|
"inputComponent": { "type": { "name": "elementType" }, "default": "'input'" },
|
||
|
|
"inputProps": { "type": { "name": "object" }, "default": "{}" },
|
||
|
|
"inputRef": { "type": { "name": "custom", "description": "ref" } },
|
||
|
|
"label": { "type": { "name": "node" } },
|
||
|
|
"margin": { "type": { "name": "enum", "description": "'dense'<br>| 'none'" } },
|
||
|
|
"maxRows": { "type": { "name": "union", "description": "number<br>| string" } },
|
||
|
|
"minRows": { "type": { "name": "union", "description": "number<br>| string" } },
|
||
|
|
"multiline": { "type": { "name": "bool" }, "default": "false" },
|
||
|
|
"name": { "type": { "name": "string" } },
|
||
|
|
"notched": { "type": { "name": "bool" } },
|
||
|
|
"onChange": {
|
||
|
|
"type": { "name": "func" },
|
||
|
|
"signature": {
|
||
|
|
"type": "function(event: React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>) => void",
|
||
|
|
"describedArgs": ["event"]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"placeholder": { "type": { "name": "string" } },
|
||
|
|
"readOnly": { "type": { "name": "bool" } },
|
||
|
|
"required": { "type": { "name": "bool" } },
|
||
|
|
"rows": { "type": { "name": "union", "description": "number<br>| string" } },
|
||
|
|
"slotProps": {
|
||
|
|
"type": {
|
||
|
|
"name": "shape",
|
||
|
|
"description": "{ input?: object, notchedOutline?: func<br>| object, root?: object }"
|
||
|
|
},
|
||
|
|
"default": "{}"
|
||
|
|
},
|
||
|
|
"slots": {
|
||
|
|
"type": {
|
||
|
|
"name": "shape",
|
||
|
|
"description": "{ input?: elementType, notchedOutline?: elementType, root?: elementType }"
|
||
|
|
},
|
||
|
|
"default": "{}"
|
||
|
|
},
|
||
|
|
"startAdornment": { "type": { "name": "node" } },
|
||
|
|
"sx": {
|
||
|
|
"type": {
|
||
|
|
"name": "union",
|
||
|
|
"description": "Array<func<br>| object<br>| bool><br>| func<br>| object"
|
||
|
|
},
|
||
|
|
"additionalInfo": { "sx": true }
|
||
|
|
},
|
||
|
|
"type": { "type": { "name": "string" }, "default": "'text'" },
|
||
|
|
"value": { "type": { "name": "any" } }
|
||
|
|
},
|
||
|
|
"name": "OutlinedInput",
|
||
|
|
"imports": [
|
||
|
|
"import OutlinedInput from '@mui/material/OutlinedInput';",
|
||
|
|
"import { OutlinedInput } from '@mui/material';"
|
||
|
|
],
|
||
|
|
"classes": [
|
||
|
|
{
|
||
|
|
"key": "adornedEnd",
|
||
|
|
"className": "MuiOutlinedInput-adornedEnd",
|
||
|
|
"description": "Styles applied to the root element if `endAdornment` is provided.",
|
||
|
|
"isGlobal": false
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"key": "adornedStart",
|
||
|
|
"className": "MuiOutlinedInput-adornedStart",
|
||
|
|
"description": "Styles applied to the root element if `startAdornment` is provided.",
|
||
|
|
"isGlobal": false
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"key": "colorSecondary",
|
||
|
|
"className": "MuiOutlinedInput-colorSecondary",
|
||
|
|
"description": "Styles applied to the root element if the color is secondary.",
|
||
|
|
"isGlobal": false
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"key": "disabled",
|
||
|
|
"className": "Mui-disabled",
|
||
|
|
"description": "Styles applied to the root element if `disabled={true}`.",
|
||
|
|
"isGlobal": true
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"key": "error",
|
||
|
|
"className": "Mui-error",
|
||
|
|
"description": "State class applied to the root element if `error={true}`.",
|
||
|
|
"isGlobal": true
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"key": "focused",
|
||
|
|
"className": "Mui-focused",
|
||
|
|
"description": "Styles applied to the root element if the component is focused.",
|
||
|
|
"isGlobal": true
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"key": "input",
|
||
|
|
"className": "MuiOutlinedInput-input",
|
||
|
|
"description": "Styles applied to the input element.",
|
||
|
|
"isGlobal": false
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"key": "inputAdornedEnd",
|
||
|
|
"className": "MuiOutlinedInput-inputAdornedEnd",
|
||
|
|
"description": "Styles applied to the input element if `endAdornment` is provided.",
|
||
|
|
"isGlobal": false,
|
||
|
|
"isDeprecated": true
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"key": "inputAdornedStart",
|
||
|
|
"className": "MuiOutlinedInput-inputAdornedStart",
|
||
|
|
"description": "Styles applied to the input element if `startAdornment` is provided.",
|
||
|
|
"isGlobal": false,
|
||
|
|
"isDeprecated": true
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"key": "inputMultiline",
|
||
|
|
"className": "MuiOutlinedInput-inputMultiline",
|
||
|
|
"description": "Styles applied to the input element if `multiline={true}`.",
|
||
|
|
"isGlobal": false,
|
||
|
|
"isDeprecated": true
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"key": "inputSizeSmall",
|
||
|
|
"className": "MuiOutlinedInput-inputSizeSmall",
|
||
|
|
"description": "Styles applied to the input element if `size=\"small\"`.",
|
||
|
|
"isGlobal": false,
|
||
|
|
"isDeprecated": true
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"key": "inputTypeSearch",
|
||
|
|
"className": "MuiOutlinedInput-inputTypeSearch",
|
||
|
|
"description": "Styles applied to the input element if `type=\"search\"`.",
|
||
|
|
"isGlobal": false
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"key": "multiline",
|
||
|
|
"className": "MuiOutlinedInput-multiline",
|
||
|
|
"description": "Styles applied to the root element if `multiline={true}`.",
|
||
|
|
"isGlobal": false
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"key": "notchedOutline",
|
||
|
|
"className": "MuiOutlinedInput-notchedOutline",
|
||
|
|
"description": "Styles applied to the NotchedOutline element.",
|
||
|
|
"isGlobal": false
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"key": "root",
|
||
|
|
"className": "MuiOutlinedInput-root",
|
||
|
|
"description": "Styles applied to the root element.",
|
||
|
|
"isGlobal": false
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"key": "sizeSmall",
|
||
|
|
"className": "MuiOutlinedInput-sizeSmall",
|
||
|
|
"description": "Styles applied to the input element if `size=\"small\"`.",
|
||
|
|
"isGlobal": false
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"spread": true,
|
||
|
|
"themeDefaultProps": true,
|
||
|
|
"muiName": "MuiOutlinedInput",
|
||
|
|
"forwardsRefTo": "HTMLDivElement",
|
||
|
|
"filename": "/packages/mui-material/src/OutlinedInput/OutlinedInput.js",
|
||
|
|
"inheritance": { "component": "InputBase", "pathname": "/material-ui/api/input-base/" },
|
||
|
|
"demos": "<ul><li><a href=\"/material-ui/react-number-field/\">Number Field</a></li>\n<li><a href=\"/material-ui/react-text-field/\">Text Field</a></li></ul>",
|
||
|
|
"cssComponent": false
|
||
|
|
}
|