1import React from 'react';
2import { Box, Icon } from '@tlon/indigo-react';
4import './Dropdown.scss';
6export interface DropdownProps {
8 children: React.ReactNode;
9 value: string | React.ReactNode;
11 toggleOpen: () => void;
22 <Box className={`dropdown ${className}`}>
23 {open && <Box className="close-background" onClick={toggleOpen} />}
24 <Box className={`selector ${open ? 'open' : ''}`} onClick={toggleOpen}>
26 <Icon icon="ChevronSouth" />
29 <Box className="content-border">
30 <Box className="dropdown-content">{children}</Box>
37export default Dropdown;
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