Skip to content

Instantly share code, notes, and snippets.

@edg-l
Created July 10, 2019 22:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edg-l/19b5de8560827a641de29c3281df65b0 to your computer and use it in GitHub Desktop.
Save edg-l/19b5de8560827a641de29c3281df65b0 to your computer and use it in GitHub Desktop.
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