@forter/tooltip

2.4.0 • Public • Published

fc-tooltip

a small popping label upon hovering.

Usage

<script>
   import '@forter/tooltip';
</script>

<fc-tooltip>
   <fc-button intent="primary">Peeka...</fc-button>
</fc-tooltip>

Examples

<!-- invalid -->
<fc-tooltip position="invalid">
   <fc-button intent="primary">Peeka...</fc-button>
</fc-tooltip>

Properties

Property Attribute Type Default Description
position "top" | "left" | "bottom" | "right"
showing showing boolean false Whether tooltip is shown.
tooltip tooltip string "Placeholder!" the tooltip text. example: Can be long explaination

Events

Event Description
opened when tooltip is showed. method: toggle, example: { "showing": true }

Slots

Name Description
tooltip element. example: <fc-button intent="apply">Peeka...</fc-button>

CSS Custom Properties

Property Description
--fc-tooltip-background-color tooltip background color. default: #212529
--fc-tooltip-width tooltip width. default: max-content

Package Sidebar

Install

npm i @forter/tooltip

Weekly Downloads

4

Version

2.4.0

License

Apache-2.0

Unpacked Size

62.8 kB

Total Files

40

Last publish

Collaborators

  • forter-npm
  • lirown
  • oweingart