1import React from 'react';
2import cn from 'classnames';
3import Grid from './Grid';
5export default function Button({
16 black: !solid && !disabled,
17 gray4: !solid && disabled,
24 'pointer p4 truncate flex-row justify-between',
26 'bg-black bg-gray6-hover': solid && !disabled,
27 'bg-gray3': solid && disabled,
28 'bg-transparent bg-gray1-hover': !solid && !disabled,
29 'bg-transparent': !solid && disabled,
34 ...(disabled && { pointerEvents: 'none', cursor: 'not-allowed' }),
37 <Grid.Item className="flex-row justify-between" full>
38 <span className={cn(textColor)}>{children}</span>
39 <div className={cn('pl4', textColor)}>{icon}</div>
43 <span className="gray4 f6">{detail}</span>
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