diff options
author | Fabio Berger <me@fabioberger.com> | 2018-10-05 22:33:15 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-10-05 22:33:15 +0800 |
commit | df7210163ad2835dcb6e461da173d1873d3195d4 (patch) | |
tree | d266df9035c1cf9c0613d228bb6b5adf66e76687 /packages/website/ts/components/ui/text.tsx | |
parent | ded6742ddd70e295f15dab6363c935777a6a5588 (diff) | |
download | dexon-0x-contracts-df7210163ad2835dcb6e461da173d1873d3195d4.tar dexon-0x-contracts-df7210163ad2835dcb6e461da173d1873d3195d4.tar.gz dexon-0x-contracts-df7210163ad2835dcb6e461da173d1873d3195d4.tar.bz2 dexon-0x-contracts-df7210163ad2835dcb6e461da173d1873d3195d4.tar.lz dexon-0x-contracts-df7210163ad2835dcb6e461da173d1873d3195d4.tar.xz dexon-0x-contracts-df7210163ad2835dcb6e461da173d1873d3195d4.tar.zst dexon-0x-contracts-df7210163ad2835dcb6e461da173d1873d3195d4.zip |
Convert more divs to containers and text components
Diffstat (limited to 'packages/website/ts/components/ui/text.tsx')
-rw-r--r-- | packages/website/ts/components/ui/text.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/website/ts/components/ui/text.tsx b/packages/website/ts/components/ui/text.tsx index cd8f290e3..4415962b1 100644 --- a/packages/website/ts/components/ui/text.tsx +++ b/packages/website/ts/components/ui/text.tsx @@ -19,7 +19,9 @@ export interface TextProps { textDecorationLine?: string; onClick?: (event: React.MouseEvent<HTMLElement>) => void; hoverColor?: string; + letterSpacing?: string | number; noWrap?: boolean; + textAlign?: string; display?: string; } @@ -34,6 +36,8 @@ export const Text = styled(PlainText)` font-style: ${props => props.fontStyle}; font-weight: ${props => props.fontWeight}; font-size: ${props => props.fontSize}; + text-align: ${props => props.textAlign}; + letter-spacing: ${props => props.letterSpacing}; text-decoration-line: ${props => props.textDecorationLine}; ${props => (props.lineHeight ? `line-height: ${props.lineHeight}` : '')}; ${props => (props.center ? 'text-align: center' : '')}; |