6.1.0 • Published 3 years ago
@comparaonline/ui-tooltip v6.1.0
@comparaonline/ui-tooltip
How to use
After you have installed the package, please follow the following simple steps
import React, { Component } from 'react';
import Tooltip from '@comparaonline/ui-tooltip';
import ListItem from '@material-ui/core/ListItem';
class Filter extends Component {
render() {
const { filter } = this.props;
return (
<ListItem
primary={
<span>
{filter.label}
{filter.description && <Tooltip title={filter.description} />}
</span>
}
/>
);
}
}
as simple as that, using @comparaonline/ui-tooltip
is so simple and it's based on @material-ui/core/Tooltip
API, so the exact props can be found here
This component will merge 2 interfaces for two different compomnents @material-ui/core/Tooltip
and @fortawesome/react-fontawesome
So here you have our props
Description | Default Value | Expected Type Value | Required |
---|---|---|---|
Icon element to be render | faInfoCircle Icon Element FontAwesome | React.ReactNode | false |
All props that received @fortawesome/react-fontawesome | {} | object with @fortawesome/react-fontawesome props | false |
6.1.0
3 years ago
5.4.14
4 years ago
5.4.11
4 years ago
5.4.9
4 years ago
5.4.8
4 years ago
5.4.4
5 years ago
5.4.3
5 years ago
5.1.2
5 years ago
4.9.1
5 years ago
4.9.0
5 years ago
4.8.5
5 years ago
4.8.4
5 years ago
4.8.2
5 years ago
4.8.0
5 years ago
4.7.1
5 years ago
4.7.0
5 years ago
3.4.6
5 years ago
3.4.5
5 years ago
3.4.4
5 years ago
3.4.3
5 years ago
3.4.1
5 years ago
3.4.0
5 years ago
3.1.0
5 years ago
2.2.1
5 years ago
2.1.8
5 years ago
2.1.8-staging
5 years ago
2.1.5
5 years ago
2.1.0
5 years ago
2.0.10-0
5 years ago