1import React from 'react';
2import cn from 'classnames';
4function Grid({ as: As = 'div', gap = 0, className, ...rest }) {
6 <As className={cn('grid12', gap && `gap${gap}`, className)} {...rest} />
10Grid.Item = function GridItem({
28 [`half-${half}`]: half,
29 [`third-${third}`]: third,
30 [`fourth-${fourth}`]: fourth,
33 [`r${rows[0]}-${rows[1]}`]: rows.length === 2,
34 [`c${cols[0]}-${cols[1]}`]: cols.length === 2,
37 [`justify-self-${justifySelf}`]: justifySelf,
38 [`align-self-${alignSelf}`]: alignSelf,
47Grid.Divider = function GridDivider({ vertical = false, className, ...rest }) {
51 height: vertical ? 'auto' : '1px',
52 width: vertical ? '1px' : 'auto',
54 className={cn('full', className || 'bg-gray2')}
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