aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/components/ui/text.tsx
diff options
context:
space:
mode:
authorFred Carlsen <fred@sjelfull.no>2018-11-27 23:19:36 +0800
committerFred Carlsen <fred@sjelfull.no>2018-11-27 23:19:36 +0800
commit9b0020a884bdb98f9da434878fec171ab533ba7e (patch)
treeca285eb7dfd2c68f781b8b74d409fb69665a58dc /packages/instant/src/components/ui/text.tsx
parentec12e46e3f52ebb44338c113cecd073979821fae (diff)
parentfdc4a4e5fa31d8797abf6313f4488147853ed77e (diff)
downloaddexon-0x-contracts-9b0020a884bdb98f9da434878fec171ab533ba7e.tar.gz
dexon-0x-contracts-9b0020a884bdb98f9da434878fec171ab533ba7e.tar.zst
dexon-0x-contracts-9b0020a884bdb98f9da434878fec171ab533ba7e.zip
Merge remote-tracking branch 'upstream/development' into website
Diffstat (limited to 'packages/instant/src/components/ui/text.tsx')
-rw-r--r--packages/instant/src/components/ui/text.tsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/instant/src/components/ui/text.tsx b/packages/instant/src/components/ui/text.tsx
index fd14cc4d1..8e573d7b9 100644
--- a/packages/instant/src/components/ui/text.tsx
+++ b/packages/instant/src/components/ui/text.tsx
@@ -11,6 +11,7 @@ export interface TextProps {
fontSize?: string;
opacity?: number;
letterSpacing?: string;
+ textAlign?: string;
textTransform?: string;
lineHeight?: string;
className?: string;
@@ -22,6 +23,7 @@ export interface TextProps {
noWrap?: boolean;
display?: string;
href?: string;
+ width?: string;
}
export const Text: React.StatelessComponent<TextProps> = ({ href, onClick, ...rest }) => {
@@ -51,6 +53,8 @@ export const StyledText =
${props => (props.display ? `display: ${props.display}` : '')};
${props => (props.letterSpacing ? `letter-spacing: ${props.letterSpacing}` : '')};
${props => (props.textTransform ? `text-transform: ${props.textTransform}` : '')};
+ ${props => (props.textAlign ? `text-align: ${props.textAlign}` : '')};
+ ${props => (props.width ? `width: ${props.width}` : '')};
&:hover {
${props =>
props.onClick ? `color: ${darken(darkenOnHoverAmount, props.theme[props.fontColor || 'white'])}` : ''};