Files
twenty/packages/twenty-docs/l/sr/twenty-ui/display/app-tooltip.mdx
T
github-actions[bot] 8cadd00d34 i18n - translations (#15799)
Created by Github action

---------

Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
Co-authored-by: github-actions <github-actions@twenty.com>
2025-11-13 16:34:00 +01:00

89 lines
5.2 KiB
Plaintext

---
title: App Tooltip
image: /images/user-guide/tips/light-bulb.png
---
<Frame>
<img src="/images/user-guide/tips/light-bulb.png" alt="Header" />
</Frame>
A brief message that displays additional information when a user interacts with an element.
<Tabs>
<Tab title="Usage">
```jsx
import { AppTooltip } from "@/ui/display/tooltip/AppTooltip";
export const MyComponent = () => {
return (
<>
<p id="hoverText" style={{ display: "inline-block" }}>
Customer Insights
</p>
<AppTooltip
className
anchorSelect="#hoverText"
content="Explore customer behavior and preferences"
delayHide={0}
offset={6}
noArrow={false}
isOpen={true}
place="bottom"
positionStrategy="absolute"
/>
</>
);
};
```
</Tab>
<Tab title="Props">
| Својства | Тип | Опис |
| ---------------- | ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| className | низ | Опциона CSS класа за додатно стилизовање |
| anchorSelect | CSS селектор | Селектор за сидро наговештаја (елемент који активира наговештај) |
| content | низ | Садржај који желите приказати у наговештају |
| delayHide | број | Кашњење у секундама пре него што се наговештај сакрије након што курсор напусти сидро |
| offset | број | Офсет у пикселима за позиционирање наговештаја |
| noArrow | булевска вредност | Ако је `true`, стрелица на наговештају је сакривена |
| isOpen | булевска вредност | Ако је `true`, наговештај је подразумевано отворен |
| place | `PlacesType` string from `react-tooltip` | Одређује место наговештаја. Вредности укључују `bottom`, `left`, `right`, `top`, `top-start`, `top-end`, `right-start`, `right-end`, `bottom-start`, `bottom-end`, `left-start`, и `left-end` |
| positionStrategy | `PositionStrategy` string from `react-tooltip` | Стратегија позиционирања за наговештај. Има две вредности: `absolute` и `fixed` |
</Tab>
</Tabs>
## Текст који излази из оквира са наговештајем
Handles overflowing text and displays a tooltip when the text overflows.
<Tabs>
<Tab title="Usage">
```jsx
import { OverflowingTextWithTooltip } from 'twenty-ui/display';
export const MyComponent = () => {
const crmTaskDescription =
'Follow up with client regarding their recent product inquiry. Discuss pricing options, address any concerns, and provide additional product information. Record the details of the conversation in the CRM for future reference.';
return <OverflowingTextWithTooltip text={crmTaskDescription} />;
};
```
</Tab>
<Tab title="Props">
| Својства | Тип | Опис |
| -------- | --- | --------------------------------------------------------------------- |
| текст | низ | Садржај који желите приказати у подручју текста који излази из оквира |
</Tab>
</Tabs>