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 and position as initvalue
const fbCore = new floatingBallCore('#595857', 'top right')
// or nothing
const fbCore = new floatingBallCore()