0.1.0 • Published 2 years ago

@logo-rn/logo-tooltip v0.1.0

Weekly downloads
-
License
See license in LI...
Repository
-
Last release
2 years ago

@logo-rn/logo-tooltip

allows user to get a tooltip of the anchor component.

npm version

Installation

Install the component:

npm i @logo-rn/logo-tooltip -s

Usage

Once installed, import the component in your application:

import {LogoTooltip} from '@logo-rn/logo-tooltip';
  const [visible, setVisible] = useState(false)
   
     const renderButton = () => (
        <LogoButton title="Open Tooltip"  onClick={() => setVisible(true)}  />
  )
  //..
  <LogoTooltip
       desc="Tooltip Description"
       buttonText="Close"
       anchor={renderButton}
       visible={visible}
       close={() => setVisible(false)}
       onClick={(item: any) => setVisible(false)} />

For more detailed information, please visit:

Logo Elements Documentation ↗