File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ InnerOption.propTypes /* remove-proptypes */ = {
141141 * A text representation of the option's content.
142142 * Used for keyboard text navigation matching.
143143 */
144- label : PropTypes . element ,
144+ label : PropTypes . oneOfType ( [ PropTypes . element , PropTypes . string ] ) ,
145145 /**
146146 * The props used for each slot inside.
147147 * @default {}
@@ -232,7 +232,7 @@ StableOption.propTypes /* remove-proptypes */ = {
232232 * A text representation of the option's content.
233233 * Used for keyboard text navigation matching.
234234 */
235- label : PropTypes . element ,
235+ label : PropTypes . oneOfType ( [ PropTypes . element , PropTypes . string ] ) ,
236236 /**
237237 * The system prop that allows defining system overrides as well as additional CSS styles.
238238 */
Original file line number Diff line number Diff line change @@ -324,7 +324,7 @@ Tab.propTypes /* remove-proptypes */ = {
324324 /**
325325 * The icon to display.
326326 */
327- icon : PropTypes . element ,
327+ icon : PropTypes . oneOfType ( [ PropTypes . element , PropTypes . string ] ) ,
328328 /**
329329 * The position of the icon relative to the label.
330330 * @default 'top'
You can’t perform that action at this time.
0 commit comments