@crave/farmblocks-more-info
v4.1.8
Published
More info component
Downloads
186
Readme
Farmblocks More info
A component which renders a text, icon, and a tooltip when mouse is over the icon.
Installation
npm install @crave/farmblocks-more-info
API
A text or children must be supplied, otherwise the tooltip won't be rendered.
| Property | Description | Type | | ------------ | ----------------------------------------------------------- | ---------- | | trigger | the icon or text that will display the tooltip when hovered | node | | children | (required) content to be rendered inside the tooltip | React.Node | | text | displayed at the left of the icon | string | | tooltipProps | props to be passed to Tooltip component | object |
License
MIT