@crave/farmblocks-more-info

More info component

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@crave/farmblocks-more-info
20374.1.8a year ago5 years agoMinified + gzip package size for @crave/farmblocks-more-info in KB

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