DocSpace-client/packages/asc-web-components/help-button
2022-01-24 23:27:24 +08:00
..
help-button.stories.js Web: Components: added stories (ModalDialog, MainButton, Loader, Link, LinkWithDropDown, Label, IconButton),fix HelpButton, Heading stories 2021-03-08 23:18:45 +03:00
help-button.test.js Web: Components: fix test 2021-11-01 12:11:52 +03:00
index.js Web: add theme support from props 2022-01-24 23:27:24 +08:00
README.md Web: Components/Common: fix imports 2021-02-26 00:19:45 +03:00
styled-help-button.js Web: Components/Common: fix imports 2021-02-26 00:19:45 +03:00

HelpButton

HelpButton is used for a action on a page

Usage

import HelpButton from "@appserver/components/help-button";
<HelpButton tooltipContent={<Text>Tooltip content</Text>} />
<HelpButton
  tooltipContent={
    <Text>
      Tooltip content with{" "}
      <Link isHovered={true} href="/">
        link
      </Link>
    </Text>
  }
/>

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
className string - - - Accepts class
displayType oneOf - dropdown, aside, auto auto Tooltip display type
helpButtonHeaderContent string - - - Tooltip header content (tooltip opened in aside) id string - - - Accepts id