Hover information display component with ASCII-styled borders and positioning.
npm install react-ascii-ui
import { AsciiTooltip } from 'react-ascii-ui';
export default function App() {
return (
<AsciiTooltip
content="This is helpful information!"
position="top"
delay={300}
>
<button>Hover me</button>
</AsciiTooltip>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
| content | string | - | Tooltip text content |
| position | 'top' | 'right' | 'bottom' | 'left' | 'top' | Tooltip position relative to child |
| children | ReactNode | - | Element to trigger tooltip on |
| delay | number | 500 | Delay before showing tooltip (ms) |
| className | string | "" | Additional CSS classes for tooltip |
| disabled | boolean | false | Disable tooltip functionality |