6.1.0 • Published 4 years ago

@comparaonline/ui-tooltip v6.1.0

Weekly downloads
56
License
MIT
Repository
-
Last release
4 years ago

@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

DescriptionDefault ValueExpected Type ValueRequired
Icon element to be renderfaInfoCircle Icon Element FontAwesomeReact.ReactNodefalse
All props that received @fortawesome/react-fontawesome{}object with @fortawesome/react-fontawesome propsfalse
6.1.0

4 years ago

5.4.14

6 years ago

5.4.11

6 years ago

5.4.9

6 years ago

5.4.8

6 years ago

5.4.4

6 years ago

5.4.3

6 years ago

5.1.2

6 years ago

4.9.1

6 years ago

4.9.0

6 years ago

4.8.5

6 years ago

4.8.4

6 years ago

4.8.2

6 years ago

4.8.0

6 years ago

4.7.1

6 years ago

4.7.0

6 years ago

3.4.6

6 years ago

3.4.5

7 years ago

3.4.4

7 years ago

3.4.3

7 years ago

3.4.1

7 years ago

3.4.0

7 years ago

3.1.0

7 years ago

2.2.1

7 years ago

2.1.8

7 years ago

2.1.8-staging

7 years ago

2.1.5

7 years ago

2.1.0

7 years ago

2.0.10-0

7 years ago