mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 12:56:46 +08:00
Merge pull request #14653 from chengsieuly/master
Update react-bootstrap typings for ResponsiveEmbed
This commit is contained in:
11
react-bootstrap/index.d.ts
vendored
11
react-bootstrap/index.d.ts
vendored
@@ -1,6 +1,6 @@
|
||||
// Type definitions for react-bootstrap
|
||||
// Project: https://github.com/react-bootstrap/react-bootstrap
|
||||
// Definitions by: Walker Burgin <https://github.com/walkerburgin>, Vincent Siao <https://github.com/vsiao>, Danilo Barros <https://github.com/danilojrr>, Batbold Gansukh <https://github.com/Batbold-Gansukh>, Raymond May Jr. <https://github.com/octatone>
|
||||
// Definitions by: Walker Burgin <https://github.com/walkerburgin>, Vincent Siao <https://github.com/vsiao>, Danilo Barros <https://github.com/danilojrr>, Batbold Gansukh <https://github.com/Batbold-Gansukh>, Raymond May Jr. <https://github.com/octatone>, Cheng Sieu Ly <https://github.com/chengsieuly>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.1
|
||||
|
||||
@@ -867,6 +867,15 @@ declare namespace ReactBootstrap {
|
||||
type Image = React.ClassicComponent<ImageProps, {}>;
|
||||
var Image: React.ClassicComponentClass<ImageProps>;
|
||||
|
||||
// <ResponsiveEmbed />
|
||||
interface ResponsiveEmbedProps extends React.HTMLProps<ResponsiveEmbed> {
|
||||
a16by9?: boolean;
|
||||
a4by3?: boolean;
|
||||
bsClass?: string;
|
||||
}
|
||||
class ResponsiveEmbed extends React.Component<ResponsiveEmbedProps, {}> {
|
||||
}
|
||||
|
||||
// <PageHeader />
|
||||
interface PageHeaderProps extends React.HTMLProps<PageHeader> {
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
Nav, NavItem, Navbar, NavDropdown,
|
||||
Tabs, Tab, Pager, PageItem,
|
||||
Pagination, Alert, Carousel, SafeAnchor,
|
||||
Grid, Row, Col, Thumbnail, Image,
|
||||
Grid, Row, Col, Thumbnail, Image, ResponsiveEmbed,
|
||||
Label, Badge, Jumbotron, PageHeader,
|
||||
Glyphicon, Table, Form, FormGroup,
|
||||
ControlLabel, FormControl, HelpBlock,
|
||||
@@ -845,6 +845,20 @@ export class ReactBootstrapTest extends Component<any, any> {
|
||||
<Image src="https://placeholdit.imgix.net/~text?txtsize=33&txt=AUDIO&w=150&h=150" rounded />
|
||||
</div>
|
||||
|
||||
<div style={style}>
|
||||
<div>
|
||||
<ResponsiveEmbed a16by9>
|
||||
Embedded Content
|
||||
</ResponsiveEmbed>
|
||||
<ResponsiveEmbed a4by3>
|
||||
Embedded Content
|
||||
</ResponsiveEmbed>
|
||||
<ResponsiveEmbed bsClass='embed-responsive'>
|
||||
Embedded Content
|
||||
</ResponsiveEmbed>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style={style}>
|
||||
<PageHeader>Example page header <small>Subtext for header</small></PageHeader>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user