@sonicgarden/bs-tooltip-element

Installation
6,756
Install
npm install @sonicgarden/bs-tooltip-element
Latest Version:0.4.0
Vue:3
License:MIT
Last Updated:Apr 4, 2024
Links: GitHub  ·  npm
Maintainer: latica.jp

<bs-tooltip> element

Installation

$ npm install @sonicgarden/bs-tooltip-element

Usage

import '@sonicgarden/bs-tooltip-element'

Default

<bs-tooltip content="Default tooltip">
  <button type="button">Tooltip</button>
</bs-tooltip>

Manual

<bs-tooltip content="Default tooltip" manual show>
  <button type="button">Tooltip</button>
</bs-tooltip>

Disabled

<bs-tooltip content="Default tooltip" disabled>
  <button type="button">Tooltip</button>
</bs-tooltip>

HTML

<bs-tooltip>
  <button type="button">Tooltip</button>
  <template>
    This is a <strong>tooltip.</strong><br>
    This is a <strong>tooltip.</strong>
  </template>
</bs-tooltip>

Placement

<bs-tooltip content="Bottom tooltip" placement="bottom">
  <button type="button">Tooltip</button>
</bs-tooltip>

Browser support

Browsers without native custom element support require a polyfill.

  • Chrome
  • Firefox
  • Safari
  • Microsoft Edge

Development

pnpm i
pnpm dev

License

Distributed under the MIT license. See LICENSE for details.

Related Packages

@sonicgarden/vue-custom-element-rails

vue\-custom\-element wrapper

1,994
@sonicgarden/vwrap

Wrapping Vue components with custom elements.

21,585 0

Version History

Version Released Vue License
0.4.0 ^3.4.21 MIT
0.3.0 ^3.3.8 MIT
0.2.3 ^3.2.37 MIT
0.2.2 ^3.2.37 MIT
0.2.1 ^3.2.37 MIT