Tooltip

A Tooltip component displays informative pop-ups when hovering or focusing on an element. Built on top of heroui-native Tooltip.

Demo

Demo Coming Soon

Tooltip examples will be available soon.

Usage

import { NTooltip, NButton } from '@nayan-ui/react';
const Tooltip = () => {
return (
<NTooltip message="This is sample tool tip! This is sample tool tip This is sample tool tip This is sample tool tip ">
<NButton>Show Tooltip</NButton>
</NTooltip>
);
};
export default Tooltip;

Attributes

NameTypeDefaultDetails
childrenReact.ReactNodeRequiredTrigger element for the tooltip.
messagestringRequiredTooltip message text.
classNamestring' 'You can customise tooltip content by passing tailwind classes.
textClassNamestring' 'You can customise tooltip text by passing tailwind classes.