PluginProbe
Yatra – Travel Booking & Tour Operator Software / 3.0.16
Yatra – Travel Booking & Tour Operator Software v3.0.16
3.0.16 3.0.15 3.0.14 3.0.14.1 3.0.14.2 3.0.12 3.0.13 3.0.11 3.0.10 3.0.9 3.0.8 3.0.7 3.0.6 3.0.5 3.0.5.1 3.0.4 3.0.3 3.0.2.9 3.0.2.7 3.0.2.8 3.0.2.6 trunk 1.0.0 2.0.0 2.0.1 All 84 releases
yatra / resources / js / components / ui / help-text.tsx

help-text.tsx in Yatra – Travel Booking & Tour Operator Software 3.0.16, at resources/js/components/ui/help-text.tsx

31 lines 673 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * Help Text Component
3 * Displays helpful information for users
4 */
5
6 import React from "react";
7 import { Info, HelpCircle } from "lucide-react";
8
9 interface HelpTextProps {
10 text: string;
11 variant?: "info" | "help";
12 className?: string;
13 }
14
15 export const HelpText: React.FC<HelpTextProps> = ({
16 text,
17 variant = "info",
18 className = "",
19 }) => {
20 const Icon = variant === "help" ? HelpCircle : Info;
21
22 return (
23 <div
24 className={`flex items-start gap-1.5 text-[11px] text-gray-400 dark:text-gray-500 ${className}`}
25 >
26 <Icon className="w-3 h-3 mt-0.5 flex-shrink-0 opacity-60" />
27 <span className="opacity-80">{text}</span>
28 </div>
29 );
30 };
31