Wondering what’s next for npm?Check out our public roadmap! »

    @emanon/ema-tooltip

    0.3.3 • Public • Published

    ema-tooltip

    Overall

    Used to notify users of information with tooltiop style.

    Properties

    Property Attribute Type Default Description
    noArrow noArrow boolean false Set true to hide the arrow element.
    opened opened boolean false Visibility flag.
    placement placement "top_left" | "top" | "top_right" | "right_top" | "right" | "right_bottom" | "bottom_left" | "bottom" | "bottom_right" | "left_top" | "left" | "left_bottom" "top" Where a tooltip arrow is displayed.

    Methods

    Method Type
    close (): void

    Events

    Event Type Description
    close CustomEvent<{}> Fires when the tooltip is closed.
    request-close CustomEvent<{ accept: () => void; }> Fires when the tooltip want to be closed.
    Call the function passed to accept.

    CSS Custom Properties

    Property Default Description
    --ema-c-tooltip-arrowSize "10px" Arrow size.
    --ema-c-tooltip-bgColor "#80888f" Background color.
    --ema-c-tooltip-borderColor "#80888f" Border color.
    --ema-c-tooltip-borderRadius "4px" Border radius.
    --ema-c-tooltip-borderWidth "1px" Border width.

    Keywords

    none

    Install

    npm i @emanon/ema-tooltip

    DownloadsWeekly Downloads

    44

    Version

    0.3.3

    License

    MIT

    Unpacked Size

    56.1 kB

    Total Files

    7

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar