mirror of
https://github.com/usebruno/bruno.git
synced 2025-08-16 18:41:46 +02:00
feat: migration to electron + next complete
This commit is contained in:
24
renderer/components/Dropdown/index.js
Normal file
24
renderer/components/Dropdown/index.js
Normal file
@ -0,0 +1,24 @@
|
||||
import React from 'react';
|
||||
import Tippy from '@tippyjs/react';
|
||||
import StyledWrapper from './StyledWrapper';
|
||||
|
||||
const Dropdown = ({icon, children, onCreate, placement}) => {
|
||||
return (
|
||||
<StyledWrapper className="dropdown">
|
||||
<Tippy
|
||||
content={children}
|
||||
placement={placement || "bottom-end"}
|
||||
animation={false}
|
||||
arrow={false}
|
||||
onCreate={onCreate}
|
||||
interactive={true}
|
||||
trigger="click"
|
||||
appendTo="parent"
|
||||
>
|
||||
{icon}
|
||||
</Tippy>
|
||||
</StyledWrapper>
|
||||
);
|
||||
};
|
||||
|
||||
export default Dropdown;
|
Reference in New Issue
Block a user