DocSpace-buildtools/web/ASC.Web.Components/src/components/help-button
2019-11-25 12:45:59 +03:00
..
help-button.stories.js global replace HelpButtonHeaderContent with helpButtonHeaderContent 2019-11-25 12:00:40 +03:00
help-button.test.js Web: Components: fix tooltip position, added tests to help-button 2019-10-21 08:59:47 +03:00
index.js Web: Components: fixed help-button PropTypes, replace toggle-button to buttons category 2019-11-25 12:45:59 +03:00
README.md global replace HelpButtonHeaderContent with helpButtonHeaderContent 2019-11-25 12:00:40 +03:00

HelpButton

HelpButton is used for a action on a page

Usage

import { HelpButton } from "asc-web-components";
<HelpButton tooltipContent={<Text.Body>Tooltip content</Text.Body>} />
<HelpButton
  tooltipContent={
    <Text.Body>
      Tooltip content with{" "}
      <Link isHovered={true} href="/">
        link
      </Link>
    </Text.Body>
  }
/>

Usage with aside

<HelpButton
  tooltipContent={
    <>
      <p>This is a global react component tooltip</p>
      <p>You can put every thing here</p>
      <ul>
        <li>Word</li>
        <li>Chart</li>
        <li>Else</li>
      </ul>
    </>
  }
/>

Properties

Props Type Required Values Default Description
tooltipContent object,string - - Tooltip content
place string - top, right, bottom, left top Tooltip placement
displayType oneOf - dropdown, aside, auto auto Tooltip display type
helpButtonHeaderContent string - - - Tooltip header content (tooltip opened in aside)