1import React from 'react';
2import cn from 'classnames';
4const Grid = React.forwardRef(function Grid(
5 { as: As = 'div', gap = 0, align, justify, className, ...rest },
15 [`justify-${justify}`]: justify,
16 [`align-${align}`]: align,
25Grid.Item = React.forwardRef(function GridItem(
47 [`half-${half}`]: half,
48 [`third-${third}`]: third,
49 [`fourth-${fourth}`]: fourth,
52 [`r${rows[0]}-${rows[1]}`]: rows.length === 2,
53 [`c${cols[0]}-${cols[1]}`]: cols.length === 2,
56 [`justify-self-${justifySelf}`]: justifySelf,
57 [`align-self-${alignSelf}`]: alignSelf,
66Grid.Divider = function GridDivider({ color = 'gray2', className, ...rest }) {
67 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