Created
July 10, 2019 22:05
-
-
Save edg-l/19b5de8560827a641de29c3281df65b0 to your computer and use it in GitHub Desktop.
ReactJS components for http://hugeinc.github.io/flexboxgrid-sass/
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 React from 'react'; | |
export const Row: React.FC = props => { | |
return <div className="row">{props.children}</div>; | |
}; | |
export interface ColProps { | |
size: number; | |
device: 'xs' | 'sm' | 'md' | 'lg'; | |
} | |
export const Col: React.FC<ColProps> = props => { | |
return <div className={`col-${props.device}-${props.size}`}>{props.children}</div>; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment