Package Exports
- @floating-ball/core
- @floating-ball/core/es/index.js
- @floating-ball/core/index.js
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 (@floating-ball/core) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@floating-ball/core
floating ball core
Install
// npm
npm i --save @floating-ball/core
// yarn
yarn add -D @floating-ball/core
// pnpm
pnpm add -D @floating-ball/coreUsage
// cjs
const floatingBallCore = require('@floating-ball/core');
// esm
import floatingBallCore from '@floating-ball/core';
// pass theme, position and column as initvalue
const fbCore = new floatingBallCore('#595857', 'top right', 2, true)
// or nothing
const fbCore = new floatingBallCore()DOCS
args
| Args | role | Description | Type | default |
|---|---|---|---|---|
| first | theme | set floating ball primary color | String | #202a31 |
| second | position | set floating ball init position.(top/bottom/left/right) | String | bottom right |
| third | column | set floating ball column of popover.(max: 4) | Number | 2 |
| fourth | canMove | control the floating ball can move by mouse | Boolean | true |