@cdztt/tooltip-react
TypeScript icon, indicating that this package has built-in type declarations

1.2.9 • Public • Published

Usage

  1. npm i @cdztt/tooltip-react

  2. sample code:

import Tooltip from '@cdztt/tooltip-react'

function Link() {
    return (
        <div>
            <a href='https://example.com'>
                Link
            </a>
            <Tooltip place='bottom'>
                example.com
            </Tooltip>
        </div>
    )
}
  • API

Parameters:

Parameters Properties Type Units Default
children React Node undefined
place String 'top'
size Number rem 1
arrowSize Number px 8

Properties:

place Value
'top'
'bottom'
'left'
'right'
'top-left'
'top-right'
'bottom-left'
'bottom-right'
'center'

Readme

Keywords

none

Package Sidebar

Install

npm i @cdztt/tooltip-react

Weekly Downloads

2

Version

1.2.9

License

ISC

Unpacked Size

12 kB

Total Files

5

Last publish

Collaborators

  • cdztt