@rhc-shared-components/tool-tip
v3.0.0
Published
Tool tip component
Downloads
311
Keywords
Readme
@rhc-shared-components/tool-tip
A reusable React tooltip component built with PatternFly for Red Hat certified apps
Install
yarn add @rhc-shared-components/tool-tipUsage
import { ToolTip } from "@rhc-shared-components/tool-tip";
import { CopyIcon } from "@patternfly/react-icons";
const App = () => (
<ToolTip buttonAriaLabel="Copy" buttonContent={<CopyIcon />}>
Click to copy to clipboard
</ToolTip>
);Development
yarn dev # Start dev server
yarn build # Build library
yarn lint # Check with Biome
yarn lint-fix # Auto-fix lint issues