Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@spectrum-web-components/tooltip

Package Overview
Dependencies
Maintainers
2
Versions
346
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spectrum-web-components/tooltip

`sp-tooltip` allow users to get contextual help or information about specific components when hovering or focusing on them.

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

Overview

sp-tooltip allow users to get contextual help or information about specific components when hovering or focusing on them.

Example

Tooltips can be top, bottom, left, or right.

<sp-tooltip open tip="top">Label</sp-tooltip>
<br />
<br />
<sp-tooltip open tip="bottom">Label</sp-tooltip>
<br />
<br />
<sp-tooltip open tip="left">Label</sp-tooltip>
<br />
<br />
<sp-tooltip open tip="right">Label</sp-tooltip>

Variants

Informative

This is the informative or info variant of Tooltip

<sp-tooltip open tip="top" variant="info">Label</sp-tooltip>
<sp-tooltip open tip="top" variant="info">
    Lorem ipsum dolor sit amet, consectetur adipiscing elit
</sp-tooltip>
<sp-tooltip open tip="top" variant="info">
    <sp-icon size="s" name="ui:InfoSmall" slot="icon"></sp-icon>
    Label
</sp-tooltip>
<sp-tooltip open tip="top" variant="info">
    <sp-icon size="s" name="ui:InfoSmall" slot="icon"></sp-icon>
    Lorem ipsum dolor sit amet, consectetur adipiscing elit
</sp-tooltip>
Positive

This is the postive (a.k.a.) success variant of Tooltip

<sp-tooltip open tip="top" variant="positive">Label</sp-tooltip>
<sp-tooltip open tip="top" variant="positive">
    Lorem ipsum dolor sit amet, consectetur adipiscing elit
</sp-tooltip>
<sp-tooltip open tip="top" variant="positive">
    <sp-icon size="s" name="ui:CheckmarkSmall" slot="icon"></sp-icon>
    Label
</sp-tooltip>
<sp-tooltip open tip="top" variant="positive">
    <sp-icon size="s" name="ui:CheckmarkSmall" slot="icon"></sp-icon>
    Lorem ipsum dolor sit amet, consectetur adipiscing elit
</sp-tooltip>
Negative

This is the negative a.k.a. error variant of Tooltip

<sp-tooltip open tip="top" variant="negative">Label</sp-tooltip>
<sp-tooltip open tip="top" variant="negative">
    Lorem ipsum dolor sit amet, consectetur adipiscing elit
</sp-tooltip>
<sp-tooltip open tip="top" variant="negative">
    <sp-icon size="s" name="ui:AlertSmall" slot="icon"></sp-icon>
    Label
</sp-tooltip>
<sp-tooltip open tip="top" variant="negative">
    <sp-icon size="s" name="ui:AlertSmall" slot="icon"></sp-icon>
    Lorem ipsum dolor sit amet, consectetur adipiscing elit
</sp-tooltip>

Keywords

FAQs

Package last updated on 14 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc