DocSpace-client/packages/shared/components/help-button
2024-07-16 10:30:28 +02:00
..
HelpButton.stories.tsx Shared: refactor rtl 2024-07-16 10:30:28 +02:00
HelpButton.styled.ts Replaced copyright start year + format 2024-03-21 18:09:55 +04:00
HelpButton.test.tsx Replaced copyright start year + format 2024-03-21 18:09:55 +04:00
HelpButton.tsx Fixed Bug 67164 – Rooms.InviteUsers. Show the popup helper window in the user's line with an invalid email when hovering the mouse over the ! icon, and not when clicking. 2024-04-02 13:35:25 +03:00
HelpButton.types.tsx Fixed Bug 67164 – Rooms.InviteUsers. Show the popup helper window in the user's line with an invalid email when hovering the mouse over the ! icon, and not when clicking. 2024-04-02 13:35:25 +03:00
index.tsx Replaced copyright start year + format 2024-03-21 18:09:55 +04:00
README.md Client: fix wrong import - export for shared components 2024-01-10 11:01:43 +03:00

HelpButton

HelpButton is used for a action on a page

Usage

import { HelpButton } from "@docspace/shared/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