Alexey Safronov
a2302aa248
# Conflicts: # packages/client/src/components/PrivateRouteWrapper/index.tsx # packages/client/src/pages/Confirm/sub-components/activateUser.js # packages/client/src/pages/PortalSettings/categories/integration/LDAP/sub-components/CertificateDialog.js # packages/client/src/pages/PublicRoom/sub-components/RoomStyles.js # packages/login/src/app/(root)/layout.tsx # packages/login/src/app/(root)/page.tsx # packages/login/src/app/layout.tsx # packages/login/src/components/LoginForm/index.tsx # packages/login/src/types/index.ts # packages/login/src/utils/actions.ts # packages/shared/constants/index.ts # packages/shared/themes/base.ts |
||
---|---|---|
.. | ||
HelpButton.stories.tsx | ||
HelpButton.styled.ts | ||
HelpButton.test.tsx | ||
HelpButton.tsx | ||
HelpButton.types.tsx | ||
index.tsx | ||
README.md |
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>} />
Usage with link
<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 |