Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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>;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement