@bootstrap-styled/v4
Version:
twbs/bootstrap V4 UI Components made with bootstrap-styled. Work with css-in-js, react, styled-components, and Bootstrap Styled utilities.
17 lines (13 loc) • 387 B
Markdown
`<Tooltip />` component example:
```js
import { Tooltip, A } from '$PACKAGE_NAME';
initialState = {
isOpen: false,
};
<div>
<p>Somewhere in here is a <A href="javascript:;" id="tooltip-example">tooltip</A>.</p>
<Tooltip placement="right" isOpen={state.isOpen} target="tooltip-example" toggle={() => setState({ isOpen: !state.isOpen })}>
Hello world!
</Tooltip>
</div>
```