Skip to content

Commit

Permalink
yarn docs:api
Browse files Browse the repository at this point in the history
  • Loading branch information
emlai committed Sep 8, 2022
1 parent 2ac965d commit c70bc54
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
11 changes: 9 additions & 2 deletions docs/pages/material-ui/api/form-control-label.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"default": "'end'"
},
"onChange": { "type": { "name": "func" } },
"required": { "type": { "name": "bool" } },
"sx": {
"type": {
"name": "union",
Expand All @@ -36,9 +37,15 @@
"labelPlacementBottom",
"disabled",
"label",
"error"
"error",
"required",
"asterisk"
],
"globalClasses": { "disabled": "Mui-disabled", "error": "Mui-error" },
"globalClasses": {
"disabled": "Mui-disabled",
"error": "Mui-error",
"required": "Mui-required"
},
"name": "MuiFormControlLabel"
},
"spread": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"label": "A text or an element to be used in an enclosing label element.",
"labelPlacement": "The position of the label.",
"onChange": "Callback fired when the state is changed.<br><br><strong>Signature:</strong><br><code>function(event: React.SyntheticEvent) =&gt; void</code><br><em>event:</em> The event source of the callback. You can pull out the new checked state by accessing <code>event.target.checked</code> (boolean).",
"required": "If <code>true</code>, the label will indicate that the <code>input</code> is required.",
"sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the <a href=\"/system/getting-started/the-sx-prop/\">`sx` page</a> for more details.",
"value": "The value of the component."
},
Expand Down Expand Up @@ -44,6 +45,15 @@
"description": "State class applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the root element",
"conditions": "<code>error={true}</code>"
},
"required": {
"description": "State class applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the root element",
"conditions": "<code>required={true}</code>"
},
"asterisk": {
"description": "Styles applied to {{nodeName}}.",
"nodeName": "the asterisk element"
}
}
}

0 comments on commit c70bc54

Please sign in to comment.