1import React from 'react';
2import cn from 'classnames';
4const Grid = React.forwardRef(function Grid(
20 asFlex ? 'flex' : 'grid12',
23 [`justify-${justify}`]: justify,
24 [`align-${align}`]: align,
33Grid.Item = React.forwardRef(function GridItem(
55 [`half-${half}`]: half,
56 [`third-${third}`]: third,
57 [`fourth-${fourth}`]: fourth,
60 [`r${rows[0]}-${rows[1]}`]: rows.length === 2,
61 [`c${cols[0]}-${cols[1]}`]: cols.length === 2,
64 [`justify-self-${justifySelf}`]: justifySelf,
65 [`align-self-${alignSelf}`]: alignSelf,
74Grid.Divider = function GridDivider({ color = 'gray2', className, ...rest }) {
75 return <div className={cn('full', `bt1 b-${color}`, className)} {...rest} />;
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list