Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. import React from 'react';
  2.  
  3. export const Row: React.FC = props => {
  4. return <div className="row">{props.children}</div>;
  5. };
  6.  
  7. export interface ColProps {
  8. size: number;
  9. device: 'xs' | 'sm' | 'md' | 'lg';
  10. }
  11.  
  12. export const Col: React.FC<ColProps> = props => {
  13. return <div className={`col-${props.device}-${props.size}`}>{props.children}</div>;
  14. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement