1import React from 'react';
2import cn from 'classnames';
4export default function Button({
15 'pointer pv3 pl4 pr0 truncate flex-row justify-between',
17 'white bg-black bg-gray6-hover': solid && !disabled,
18 'white bg-gray3': solid && disabled,
19 'black bg-transparent bg-gray1-hover': !solid && !disabled,
20 'gray4 bg-transparent': !solid && disabled,
25 ...(disabled && { pointerEvents: 'none', cursor: 'not-allowed' }),
30 className={cn('ph4', {
32 black: !solid && !disabled,
33 gray4: !solid && disabled,
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