@@ -26,7 +26,6 @@ type RowColumns = RowColWidth | { cols?: RowColWidth };
26
26
export interface RowProps
27
27
extends BsPrefixProps ,
28
28
React . HTMLAttributes < HTMLElement > {
29
- noGutters ?: boolean ;
30
29
xs ?: RowColumns ;
31
30
sm ?: RowColumns ;
32
31
md ?: RowColumns ;
@@ -51,8 +50,6 @@ const propTypes = {
51
50
*/
52
51
bsPrefix : PropTypes . string ,
53
52
54
- /** Removes the gutter spacing between `Col`s as well as any added negative margins. */
55
- noGutters : PropTypes . bool . isRequired ,
56
53
as : PropTypes . elementType ,
57
54
58
55
/**
@@ -104,9 +101,6 @@ const propTypes = {
104
101
xxl : rowColumns ,
105
102
} ;
106
103
107
- const defaultProps = {
108
- noGutters : false ,
109
- } ;
110
104
111
105
const Row : BsPrefixRefForwardingComponent < 'div' , RowProps > = React . forwardRef <
112
106
HTMLDivElement ,
@@ -116,7 +110,6 @@ const Row: BsPrefixRefForwardingComponent<'div', RowProps> = React.forwardRef<
116
110
{
117
111
bsPrefix,
118
112
className,
119
- noGutters,
120
113
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
121
114
as : Component = 'div' ,
122
115
...props
@@ -147,19 +140,13 @@ const Row: BsPrefixRefForwardingComponent<'div', RowProps> = React.forwardRef<
147
140
< Component
148
141
ref = { ref }
149
142
{ ...props }
150
- className = { classNames (
151
- className ,
152
- decoratedBsPrefix ,
153
- noGutters && 'no-gutters' ,
154
- ...classes ,
155
- ) }
143
+ className = { classNames ( className , decoratedBsPrefix , ...classes ) }
156
144
/>
157
145
) ;
158
146
} ,
159
147
) ;
160
148
161
149
Row . displayName = 'Row' ;
162
150
Row . propTypes = propTypes ;
163
- Row . defaultProps = defaultProps ;
164
151
165
152
export default Row ;
0 commit comments