aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/@next/components
diff options
context:
space:
mode:
authorEzekiel Aquino <ezekiel@bakkenbaeck.no>2018-12-11 23:42:46 +0800
committerEzekiel Aquino <ezekiel@bakkenbaeck.no>2018-12-11 23:42:46 +0800
commit0948ed7a877ffca8bf43e8d67bf5804b40b2136e (patch)
treecc6b3c7115518098757102d2f619b60e6d384859 /packages/website/ts/@next/components
parentbc64c9566c4f1410dc7c22e287533473a6052085 (diff)
downloaddexon-sol-tools-0948ed7a877ffca8bf43e8d67bf5804b40b2136e.tar
dexon-sol-tools-0948ed7a877ffca8bf43e8d67bf5804b40b2136e.tar.gz
dexon-sol-tools-0948ed7a877ffca8bf43e8d67bf5804b40b2136e.tar.bz2
dexon-sol-tools-0948ed7a877ffca8bf43e8d67bf5804b40b2136e.tar.lz
dexon-sol-tools-0948ed7a877ffca8bf43e8d67bf5804b40b2136e.tar.xz
dexon-sol-tools-0948ed7a877ffca8bf43e8d67bf5804b40b2136e.tar.zst
dexon-sol-tools-0948ed7a877ffca8bf43e8d67bf5804b40b2136e.zip
WIP Adds infinite scroll image on instant page
Diffstat (limited to 'packages/website/ts/@next/components')
-rw-r--r--packages/website/ts/@next/components/text.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/website/ts/@next/components/text.tsx b/packages/website/ts/@next/components/text.tsx
index 07d0ebce2..df3977444 100644
--- a/packages/website/ts/@next/components/text.tsx
+++ b/packages/website/ts/@next/components/text.tsx
@@ -9,6 +9,7 @@ interface BaseTextInterface extends PaddingInterface {
interface HeadingProps extends BaseTextInterface {
asElement?: 'h1'| 'h2'| 'h3'| 'h4';
+ maxWidth?: string;
isCentered?: boolean;
isNoMargin?: boolean;
isMuted?: boolean | number;
@@ -23,6 +24,7 @@ interface ParagraphProps extends BaseTextInterface {
}
const StyledHeading = styled.h1<HeadingProps>`
+ max-width: ${props => props.maxWidth};
color: ${props => props.color || props.theme.textColor};
font-size: ${props => isNaN(props.size) ? `var(--${props.size || 'default'}Heading)` : `${props.size}px`};
line-height: ${props => `var(--${props.size || 'default'}HeadingHeight)`};