Material Bread
v0.2.10
Home
Getting Started
React Native
Web
Electron
MacOS
Windows
NextJs
Expo
Vue Native
Style
Font
Icons
Theme
Components
Appbar
Searchbar
Appbar Bottom
Avatar
Backdrop
Badge
Banner
Bottom Navigation
Bottom Navigation Item
Button
Card
CardActions
CardContent
CardHeader
CardMedia
Checkbox
Chip
DataTable
DataTableCell
DataTableHeader
DataTablePagination
DataTableRow
Dialog
Divider
Drawer
DrawerHeader
DrawerItem
DrawerSection
DrawerBottom
Fab
Speed dial
Icon
IconButton
List
ListExpand
ListItem
ListSection
Menu
MenuItem
Paper
Progress Bar
Progress Circle
Radio Button
Ripple
Select
SheetBottom
SheetSide
Slider
Snackbar
SwipeNav
Switch
Tabs
Tab
Textfield
Searchfield
ToggleButton
ToggleButtonGroup
Tooltip
Typography
Utils
Anchor
Color
Hoverable
Shadow
Storybook
Showcase
Contributing
Library
Docs
About

Tooltip

Tooltips display informative text when users hover over, focus on, or tap an element. - Material Docs

import { Tooltip } from 'material-bread';

Component #

Tooltip s display text above, below, or on either side of the element provided. On native, you can click to open a tooltip and click anywhere to close it.
HOVER ME
Live Editing
class Demo extends React.Component {
  constructor(props) {
    super(props)
  }
  render() {
    return (
      <View style={{position: 'relative'}}>
        <Tooltip content={"I'm a tooltip"}>
          <Button
            type="contained"
            text={'Hover me'}
          />
        </Tooltip>
      </View>
    );
  }
}

Usage #

import React, { Component } from 'react';
import { View } from 'react-native';
import { Tooltip, Button } from 'material-bread';

class Demo extends React.Component {
  constructor(props) {
    super(props)
  }
  render() {
    return (
      <View >
        <Tooltip content={"I'm a tooltip"}>
          <Button
            type="contained"
            text={'Hover me'}
          />
        </Tooltip>
      </View>
    );
  }
}

Props #

Name
Description
Type
Default
content
Text Content for tooltip
string
style
Styles root element
object
tooltipPosition
Position for the tooltip: top, bottom, left, right
string
top
  • I'm a tooltip