JSPM

@floating-ball/core

1.0.5
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q31644F
  • License MIT

floating ball core

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/core

Usage

// 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()