File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -7097,9 +7097,7 @@ Map {
7097
7097
" leftOverflowButtonProps" : Object {
7098
7098
" type" : " object" ,
7099
7099
},
7100
- " light" : Object {
7101
- " type" : " bool" ,
7102
- },
7100
+ " light" : [Function ],
7103
7101
" rightOverflowButtonProps" : Object {
7104
7102
" type" : " object" ,
7105
7103
},
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import { getInteractiveContent } from '../../internal/useNoInteractiveChildren';
20
20
import { usePrefix } from '../../internal/usePrefix' ;
21
21
import { keys , match , matches } from '../../internal/keyboard' ;
22
22
import { usePressable } from './usePressable' ;
23
+ import deprecate from '../../prop-types/deprecate' ;
23
24
24
25
// Used to manage the overall state of the Tabs
25
26
const TabsContext = React . createContext ( ) ;
@@ -403,7 +404,11 @@ TabList.propTypes = {
403
404
/**
404
405
* Specify whether or not to use the light component variant
405
406
*/
406
- light : PropTypes . bool ,
407
+ light : deprecate (
408
+ PropTypes . bool ,
409
+ 'The `light` prop for `TabList` has ' +
410
+ 'been deprecated in favor of the new `Layer` component. It will be removed in the next major release.'
411
+ ) ,
407
412
408
413
/**
409
414
* Provide the props that describe the right overflow button
You can’t perform that action at this time.
0 commit comments