@pagedotapp/page-tooltip
v0.0.0-alpha.13
Published
PageTooltip - A reusable React component
Readme
@pagedotapp/page-tooltip
A tooltip component built on Radix UI
Installation
npm install @pagedotapp/page-tooltipUsage
import { PageTooltip } from "@pagedotapp/page-tooltip"
function App() {
return (
<PageTooltip content="Helpful tooltip text">
<button>Hover me</button>
</PageTooltip>
)
}Props
See the TypeScript definitions for detailed prop types.
Styling
This component uses CSS modules for styling. The styles are injected automatically when you use the component.
Dependencies
Peer Dependencies
- React >=16.8.0
- React DOM >=16.8.0
Required Dependencies
- @radix-ui/react-tooltip: ^1.2.7
License
MIT © PageStudio
