Package Exports
- @forter/popover
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@forter/popover) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
fc-popover
An element by Forter
Usage
<script>
import '@forter/popover';
</script>
<fc-popover>
<fc-button slot="toggle">Open</fc-button>
<div slot="content">
<div>This is the content</div>
<div>Of the famous popover</div>
<div>From forter web components</div>
<div>...</div>
</div>
</fc-popover>Examples
<!-- withList -->
<fc-popover>
<fc-button slot="toggle">Open</fc-button>
<fc-list slot="content">
<fc-list-item>
<fc-icon icon="admin"></fc-icon>
<label>Joy the dog</label>
<section>Super cute dog that eat bones!</section>
</fc-list-item>
<fc-list-item>
<fc-icon icon="forter" style="--fc-icon-fill: var(--ftr-apply);"></fc-icon>
<label>Forter</label>
<section>A fraud prevention platform for the eCommerce world</section>
</fc-list-item>
<fc-list-item>
<fc-icon icon="qa"></fc-icon>
<label>Q&A</label>
<section>Ask us anything you want..</section>
</fc-list-item>
</fc-list>
</fc-popover>Properties
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
open |
open |
boolean |
false | whether popover is opened. |
openonhover |
openonhover |
boolean |
false | whether popover is opened by mouse over instead of click. |
position |
position |
"top" | "bottom" | "left" | "right" | "right_top" | "left_top" |
popover position with relative to toggle slot |
Events
| Event |
|---|
opened |
CSS Custom Properties
| Property | Description |
|---|---|
--fc-popover-arrow-size |
content's arrow size. default: 10px |
--fc-popover-background-color |
content's background color. default: white |
--fc-popover-border-radius |
content's border radios. default: 10px |
--fc-popover-box-shadow |
content's box shadow size. default: 0 2px 6px 2px rgba(183, 203, 206, 0.25) |
--fc-popover-padding |
content's padding color. default: 10px |
--fc-popover-z-index |
content's z-index. default: 999 |