A free, open source, and extensible speech-to-text application that works completely offline.
import React from "react";
import { Tooltip } from "./Tooltip";
interface InfoTooltipProps {
title?: React.ReactNode;
text: React.ReactNode;
placement?: "above" | "below";
}
/** An info icon that explains something in a tooltip. */
export const InfoTooltip: React.FC<InfoTooltipProps> = ({
title,
text,
placement = "above",
}) => (
<Tooltip title={title} text={text} placement={placement} showOnPress>
<button
type="button"
aria-label="More information"
className="grid cursor-help text-ink-3 transition-colors duration-200 hover:text-logo-primary"
>
<svg
className="w-4 h-4"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
aria-hidden="true"
>
<path
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={2}
d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
/>
</svg>
</button>
</Tooltip>
);