UITooltip

Properties

Name Type
props props
state state

new UITooltip(props)

A tooltip component

Param Type
props props

Example

import {UITooltip} from 'writer'

render($$) {
    const el = $$('div')

    return el.append(
        $$(UITooltip, {
            title: 'My neat tooltip',
            text: 'Hello World',
            fixed: false,
            show: true
        })
    )
}

UITooltip.props

Properties

Name Type Description
title string Tooltip title
text string Tooltip text
show boolean If the tooltip should be visible, defaults to false
fixed boolean Set to true if the tooltip should be possisioned fixed instead of absolute, defaults to false

UITooltip.state

Properties

Name Type Description
show boolean If the tooltip is visible

results matching ""

    No results matching ""