Created
July 21, 2019 00:11
-
-
Save theednaffattack/b86b9ead764b0b96d5a95a5c7dfb29c2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Flex as FlexBase, FlexProps } from "rebass"; | |
import { | |
maxWidth, | |
minHeight, | |
borders, | |
MinHeightProps, | |
BordersProps | |
} from "styled-system"; | |
import styled from "styled-components"; | |
type TExtendedFlexProps = MinHeightProps & BordersProps & FlexProps; | |
const Flex: React.FC<TExtendedFlexProps> = styled(FlexBase)` | |
${minHeight} | |
${borders} | |
`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment