1.1.1 • Published 1 year ago

@bobbymannino/svelte-tooltip v1.1.1

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

Svelte Tooltip

Description

A simple svelte tooltip that's:

  • TypeScript First
  • Auto-Positioning
  • Customizable With Props
  • Easy To Use

Demo

Demo Site


Installation

npm install --save-dev @bobbymannino/svelte-tooltip

Usage

<!-- +page.svelte -->

<script lang="ts">
	import { Tooltip } from "@bobbymannino/svelte-tooltip";
</script>

<p>
	This is an example usage of the <Tooltip tip="Isn't is cool!"><b>Svelte Tooltip</b></Tooltip> package from @bobbymannino
</p>

Configuration

<!-- +page.svelte -->

<p>
	This is an example usage of the <Tooltip tip="<h2>Isn't is cool!</h2>" background="#ffffff" color="#000000"><b>Svelte Tooltip</b></Tooltip> package from @bobbymannino
</p>
Property NameProperty TypeProperty Default
tip'any HTML represented as a string
backgroundany CSS color represented as a string'#000000cc'
colorany CSS color represented as a string'#ffffff'

Bugs & Features

Submit all bugs and/or feature requests to the issues panel panel on GitHub