Skip to content

Instantly share code, notes, and snippets.

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 theednaffattack/b86b9ead764b0b96d5a95a5c7dfb29c2 to your computer and use it in GitHub Desktop.
Save theednaffattack/b86b9ead764b0b96d5a95a5c7dfb29c2 to your computer and use it in GitHub Desktop.
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