mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-04 17:20:09 +00:00
Update typing for reactstrap Row (#37697)
This commit is contained in:
committed by
Sheetal Nandi
parent
189bd67495
commit
b6cfc68f53
5
types/reactstrap/lib/Row.d.ts
vendored
5
types/reactstrap/lib/Row.d.ts
vendored
@@ -1,12 +1,15 @@
|
||||
import * as React from 'react';
|
||||
import { CSSModule } from '../index';
|
||||
|
||||
export interface RowProps extends React.HTMLProps<HTMLElement> {
|
||||
type Omit<T, K> = Pick<T, Exclude<keyof T, K>>;
|
||||
|
||||
export interface RowProps extends Omit<React.HTMLProps<HTMLElement>, 'form'> {
|
||||
[key: string]: any;
|
||||
className?: string;
|
||||
cssModule?: CSSModule;
|
||||
tag?: React.ReactType;
|
||||
noGutters?: boolean;
|
||||
form?: boolean;
|
||||
}
|
||||
|
||||
declare class Row<T = {[key: string]: any}> extends React.Component<RowProps> {}
|
||||
|
||||
@@ -4532,3 +4532,34 @@ function Example127() {
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
function Example128() {
|
||||
return (
|
||||
<Form>
|
||||
<Row form>
|
||||
<Col md={6}>
|
||||
<FormGroup>
|
||||
<Label for="exampleEmail">Email</Label>
|
||||
<Input
|
||||
type="email"
|
||||
name="email"
|
||||
id="exampleEmail"
|
||||
placeholder="with a placeholder"
|
||||
/>
|
||||
</FormGroup>
|
||||
</Col>
|
||||
<Col md={6}>
|
||||
<FormGroup>
|
||||
<Label for="examplePassword">Password</Label>
|
||||
<Input
|
||||
type="password"
|
||||
name="password"
|
||||
id="examplePassword"
|
||||
placeholder="password placeholder"
|
||||
/>
|
||||
</FormGroup>
|
||||
</Col>
|
||||
</Row>
|
||||
</Form>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user