Skip to content
This repository was archived by the owner on Nov 9, 2024. It is now read-only.
This repository was archived by the owner on Nov 9, 2024. It is now read-only.

appendTo element inside Div #352

Open
@jerrygzy

Description

@jerrygzy

Hi, new to tippy here, how can I append tooltip to <HiExclamationCircle /> element inside <div></div> ?

import * as React from 'react';
import Tippy from '@tippyjs/react';
import { HiExclamationCircle } from 'react-icons/hi';
          <Tippy content={<span >{errors[id].message}</span>} appendTo={HiExclamationCircle}  >
            <div  className='absolute inset-y-0 right-0 flex items-center pr-3'>
                <HiExclamationCircle id="icon" className='text-xl text-red-500' />
            </div>
          </Tippy>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions