@minna-ui/tooltip
A plugin to add tooltips as a Svelte action.
NOTE: This package is unfinished.
TODO: Write note about @minna-ui/css
interplay/dependency.
TODO: Example image.
TODO: Add link to demo and documentation page.
Usage
-
Install the package:
yarn add @minna-ui/tooltip
-
Add to your Svelte component:
MySvelteComponent.svelte
:<div use:tooltip="Example tooltip message">My example</div> <div use:tooltip="Example tooltip message" class="tooltip-right"> My right example </div> <script> import tooltip from '@minna-ui/tooltip'; export default { actions: { tooltip, }, }; </script> <style> @import '@minna-ui/tooltip'; </style>
Licence
@minna-ui/tooltip
is part of Minna UI
, an Apache-2.0 licensed open source project. See LICENCE.
© 2020 We Are Genki