Skip to content

Instantly share code, notes, and snippets.

@smashercosmo
Last active June 1, 2018 12:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smashercosmo/d72f6dda736dc4e84bc88d8940fdf540 to your computer and use it in GitHub Desktop.
Save smashercosmo/d72f6dda736dc4e84bc88d8940fdf540 to your computer and use it in GitHub Desktop.
import React from 'react'
import styled from 'react-emotion'
import {
fontSize,
color,
textAlign,
fontWeight,
hover,
FontSizeProps,
ColorProps,
TextAlignProps,
FontWeightProps,
HoverProps,
} from 'styled-system'
export type TextProps = FontSizeProps &
ColorProps &
TextAlignProps &
FontWeightProps &
HoverProps
const Text = styled<TextProps, 'span'>('span')(
color,
fontSize,
fontWeight,
textAlign,
hover,
)
Text.displayName = 'Text'
export default Text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment