on 1171039 help sign in
30 lines 509 B history raw
1import React from 'react';
2import cn from 'classnames';
4function Grid({ className, ...rest }) {
5 return <div className={cn('grid12', className)} {...rest} />;
6}
8Grid.Item = function GridItem({
9 full,
10 half,
11 third,
12 fourth,
13 className,
14 ...rest
15}) {
16 return (
17 <div
18 className={cn(
19 full && `full`,
20 half && `half-${half}`,
21 third && `third-${third}`,
22 fourth && `fourth-${fourth}`,
23 className
24 )}
25 {...rest}
26 />
27 );
28};
30export default Grid;