@ied/popover
v1.0.0-beta.3
Published
## Install
Downloads
7
Readme
Popover
Install
yarn add @ied/popover
Use
Auto position
import Popover from '@ied/popover'
<Popover
component={<Badge icon="keyboard_arrow_right" />}
>
Add any component here !
</Popover>
Set position
import Popover from '@ied/popover'
<Popover
component={<Badge icon="keyboard_arrow_right" />}
position={{left: "100%" top:'0'}}
>
Add any component here !
</Popover>
Types
type Props = {
component: React$Node,
children: React$Node,
position?: { left?: string, right?: string, top?: string, bottom?: string },
style?: {},
className?: string,
}