mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
material-ui: Updated width prop of drawer to be compliant with spec (#16342)
* material-ui: Updated width prop of drawer to be compliant with spec * update header
This commit is contained in:
parent
ef8ff1dff4
commit
b57178eb88
4
types/material-ui/index.d.ts
vendored
4
types/material-ui/index.d.ts
vendored
@ -1,4 +1,4 @@
|
||||
// Type definitions for material-ui v0.17.5
|
||||
// Type definitions for material-ui v0.17.51
|
||||
// Project: https://github.com/callemall/material-ui
|
||||
// Definitions by: Nathan Brown <https://github.com/ngbrown>, Igor Belagorudsky <https://github.com/theigor>, Ali Taheri Moghaddar <https://github.com/alitaheri>, Oliver Herrmann <https://github.com/herrmanno>, Daniel Roth <https://github.com/DaIgeb>, Aurelién Allienne <https://github.com/allienna>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
@ -1019,7 +1019,7 @@ declare namespace __MaterialUI {
|
||||
overlayStyle?: React.CSSProperties;
|
||||
style?: React.CSSProperties;
|
||||
swipeAreaWidth?: number;
|
||||
width?: number;
|
||||
width?: number | string;
|
||||
zDepth?: number;
|
||||
}
|
||||
export class Drawer extends React.Component<DrawerProps, {}> {
|
||||
|
||||
@ -1662,7 +1662,7 @@ class DrawerOpenRightExample extends React.Component<{}, {open?: boolean}> {
|
||||
label="Toggle Drawer"
|
||||
onTouchTap={this.handleToggle}
|
||||
/>
|
||||
<Drawer width={200} openSecondary={true} open={this.state.open}>
|
||||
<Drawer width="20%" openSecondary={true} open={this.state.open}>
|
||||
<AppBar title="AppBar"/>
|
||||
</Drawer>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user