[Material UI] Changed button labels from strings to ReactNodes. (#10102)

This commit is contained in:
Carson Full
2016-07-19 19:09:41 -05:00
committed by Mohamed Hegazy
parent b54fdb6595
commit b1426f561d
2 changed files with 4 additions and 4 deletions

View File

@@ -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 />}

View File

@@ -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;