phoenix-components-library
Version:
Component library for Phoenix Frontend Projects.
53 lines (41 loc) • 1.06 kB
Markdown
```js
import { Tooltip } from 'phoenix-components-library';
render() {
return (
<Tooltip
placement="top"
title="Our tootlip text"
defaultVisible={true}
/>
);
}
```
<!-- STORY -->
- `placement` - to set Tooltip Placement
- `title` - To set Tooltip text
- `defaultVisible` - To set tooltip always visible
| propName | propType | defaultValue | isRequired |
| -------------- | -------- | ------------ | ---------- |
| placement | string | top | |
| title | string | - | |
| defaultVisible | bool | false | |
| placement Positions |
| ------------------- |
| topLeft |
| top |
| topRight |
| leftTop |
| left |
| leftBottom |
| rightTop |
| right |
| rightBottom |
| bottomLeft |
| bottom |
| bottomRight |