Download src/components/features/chat/chat-action-tooltip.tsx from SaylorTwift/openhands: direct link, hf CLI and curl.
- Browser
- Download file 550 Bytes
-
https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/chat/chat-action-tooltip.tsx
- Command line
-
hf download hf://SaylorTwift/openhands/src/components/features/chat/chat-action-tooltip.tsx
-
curl -L -o chat-action-tooltip.tsx https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/chat/chat-action-tooltip.tsx
550 Bytes
| import { StyledTooltip } from "#/components/shared/buttons/styled-tooltip"; | |
| interface ChatActionTooltipProps { | |
| children: React.ReactNode; | |
| tooltip: string | React.ReactNode; | |
| ariaLabel?: string; | |
| } | |
| export function ChatActionTooltip({ | |
| children, | |
| tooltip, | |
| ariaLabel, | |
| }: ChatActionTooltipProps) { | |
| return ( | |
| <StyledTooltip | |
| content={tooltip} | |
| placement="bottom" | |
| tooltipClassName="bg-white text-black text-xs font-medium leading-5" | |
| > | |
| <span data-aria-label={ariaLabel}>{children}</span> | |
| </StyledTooltip> | |
| ); | |
| } | |