Tooltip

A Tooltip component is a small, informative pop-up that appears when a user hovers over or focuses on an element, such as a button or icon. It provides additional context or explanations about that element without cluttering the interface. Tooltips enhance user experience by offering helpful hints, instructions, or details, ensuring that information is accessible without overwhelming the layout.
# Demo
# Attributes
NameTypeDefaultDetails
classNamestring' 'You can customise by passing tailwind classes.
triggerClassNamestring' 'You can customise by passing tailwind classes.
messagestringRequiredYou can pass message for the tooltip content.
childrenReactNodeRequiredYou can pass tooltip content as children.
# Usage
import { NTooltip, NButton } from 'nayan'; 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;