0.2.3 • Published 10 months ago

sv-tooltip v0.2.3

Weekly downloads
-
License
-
Repository
github
Last release
10 months ago

Svelte Tooltip

<script>
  import Tooltip from "sv-tooltip"
</script>

<Tooltip tip="This is a button" bottom>
  <button>Hello</button>
</Tooltip>

Installation

npm i -D sv-tooltip

Active Tooltip

  <Tooltip tip="This is a button" bottom active>
    <button>Hello</button>
  </Tooltip>

Component Tooltip

  <Tooltip tip="This is a button" top>
    <Button>Hello</Button>
  </Tooltip>

Text Tooltip

  <p>
    Something <Tooltip tip="It was actially a dream" top>weird</Tooltip> happened
    last night
  </p>

Colored Tooltip

  <p>
     <Tooltip tip="It was actially a dream" bottom color="#ffff00">Something</Tooltip>
  </p>

Pass HTML to tip

  <Tooltip tip="<marquee>This one moves!</marquee>" top>
    <button>A button</button>
  </Tooltip>
propsfunction
topshow tooltip at top
rightshow tooltip at right
bottomshow tooltip at bottom
leftshow tooltip at left
activeshow tooltip by default
colorhex value to change the color of tooltip
0.2.3

10 months ago

0.2.2

10 months ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.7

1 year ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago

0.1.0

3 years ago