Gibbu / svooltip

A basic Svelte tooltip directive.

Home Page:https://svooltip.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SVooltip

A basic Svelte tooltip directive. Powered by Floating UI.

Usage

<script>
	import { tooltip } from 'svooltip';
	import 'svooltip/styles.css'; // Include default styling
</script>

<button
	class="btn"
	use:tooltip={{
		content: "You're looking beautiful today!",
		placement: 'top-start',
		delay: [1000, 0],
		offset: 15,
		target: '#layers'
	}}
>
	Hover me for 1 second
</button>

Docs

View more information at: https://svooltip.vercel.app

Licence

See the LICENSE file for license rights and limitations (MIT).

About

A basic Svelte tooltip directive.

https://svooltip.vercel.app

License:MIT License


Languages

Language:SCSS 49.3%Language:TypeScript 24.4%Language:Svelte 18.7%Language:JavaScript 5.6%Language:HTML 2.0%