
* Add popover component * [WIP] Popover component * update ref * conversation resolve * conversation resolve (conditional render icon) * conversation resolve (onMount instead createEffect)
23 lines
392 B
Markdown
23 lines
392 B
Markdown
## Usage Example
|
|
|
|
```JS
|
|
import Popover from './Popover';
|
|
|
|
<Popover content={'This is popover text'}>
|
|
{(triggerRef: (el) => void) => (
|
|
<Button value="Hover me" ref={triggerRef} />
|
|
)}
|
|
</Popover>
|
|
```
|
|
### or
|
|
|
|
```JS
|
|
import Popover from './Popover';
|
|
|
|
<Popover content={'This is popover text'}>
|
|
{(triggerRef: (el) => void) => (
|
|
<div ref={triggerRef}>Hover me</div>
|
|
)}
|
|
</Popover>
|
|
```
|