mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 20:39:17 +08:00
[Material UI] Changed button labels from strings to ReactNodes. (#10102)
This commit is contained in:
committed by
Mohamed Hegazy
parent
b54fdb6595
commit
b1426f561d
@@ -680,7 +680,7 @@ const FlatButtonExampleComplex = () => (
|
||||
</FlatButton>
|
||||
|
||||
<FlatButton
|
||||
label="Label before"
|
||||
label={<span>Label before</span>}
|
||||
labelPosition="before"
|
||||
primary={true}
|
||||
style={styles.button}
|
||||
@@ -741,7 +741,7 @@ const RaisedButtonExampleComplex = () => (
|
||||
<input type="file" style={styles.exampleImageInput} />
|
||||
</RaisedButton>
|
||||
<RaisedButton
|
||||
label="Label before"
|
||||
label={<span>Label before</span>}
|
||||
labelPosition="before"
|
||||
primary={true}
|
||||
icon={<ActionAndroid />}
|
||||
|
||||
4
material-ui/material-ui.d.ts
vendored
4
material-ui/material-ui.d.ts
vendored
@@ -662,7 +662,7 @@ declare namespace __MaterialUI {
|
||||
hoverColor?: string;
|
||||
href?: string;
|
||||
icon?: React.ReactNode;
|
||||
label?: string;
|
||||
label?: React.ReactNode;
|
||||
labelPosition?: "before" | "after";
|
||||
labelStyle?: React.CSSProperties;
|
||||
linkButton?: boolean;
|
||||
@@ -688,7 +688,7 @@ declare namespace __MaterialUI {
|
||||
fullWidth?: boolean;
|
||||
href?: string;
|
||||
icon?: React.ReactNode;
|
||||
label?: string;
|
||||
label?: React.ReactNode;
|
||||
labelColor?: string;
|
||||
labelPosition?: "before" | "after";
|
||||
labelStyle?: React.CSSProperties;
|
||||
|
||||
Reference in New Issue
Block a user