Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • 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