mtversemtverseui
Main homepage

MENU

UI ElementsFormsTablesChartsAdvanced UIExtended UI
EcommerceAnalyticsMarketingCRMStocksSaaSLogisticsAINEWSalesNEWFinanceNEW
Text GeneratorImage GeneratorCode Generator
ProductsOrdersCustomersInvoicesTransactionsCoupons
CalendarChatEmailTasksFile ManagerSupport
World MapRoute MapDensity Map
ProfileSettingsPricingFAQAPI KeysIntegrationsActivity LogNotificationsTeamSuccessBlank Page404 Error500 Error503 ErrorComing SoonMaintenance
Sign InSign UpForgot Password
Arun Pandian

Arun Pandian

arun@mtverse.io

⌘K
UI Elements/Gradient Text

Gradient Text

Source Free

Text with gradient color effects for eye-catching headings.

src/components/mtverse/ui-elements/index.tsx
tsx
1'use client';
2import { type ReactNode } from 'react';
3import Link from 'next/link';
4import { Code2 } from 'lucide-react';
5
6function SectionCard({ title, sourceSlug, children }: { title: string; sourceSlug?: string; children: ReactNode }) {
7  return (
8    <div>
9      <div className="mb-3 flex flex-wrap items-center justify-between gap-2">
10        <h3 className="text-theme-xl font-semibold text-gray-800 dark:text-white/90">{title}</h3>
11        {sourceSlug && (
12          <Link
13            href={sourceSlug}
14            className="inline-flex items-center gap-1.5 rounded-lg px-3 py-1.5 text-xs font-medium text-brand-500 transition-colors hover:bg-brand-50 dark:text-brand-400 dark:hover:bg-brand-500/10"
15          >
16            <Code2 className="size-3.5" />
17            View Source
18          </Link>
19        )}
20      </div>
21      <div className="rounded-xl border border-gray-200 bg-white p-6 dark:border-white/5 dark:bg-gray-dark">
22        {children}
23      </div>
24    </div>
25  );
26}
27
28export function GradientTextSection() {
29  return (
30    <SectionCard title="Gradient Text" sourceSlug="/ui/source/ui-elements/gradient-text">
31      <div className="space-y-4">
32        <h2 className="text-4xl font-extrabold bg-gradient-to-r from-brand-500 to-purple-600 bg-clip-text text-transparent">
33          Gradient Heading
34        </h2>
35        <p className="text-2xl font-bold bg-gradient-to-r from-success-500 via-blue-light-500 to-brand-500 bg-clip-text text-transparent">
36          Multi-Color Gradient
37        </p>
38        <p className="text-xl font-semibold bg-gradient-to-r from-warning-500 to-error-500 bg-clip-text text-transparent">
39          Warm Gradient
40        </p>
41        <p className="text-lg font-medium bg-gradient-to-r from-blue-light-400 to-brand-400 bg-clip-text text-transparent">
42          Cool Gradient
43        </p>
44        <div className="flex flex-wrap gap-3">
45          <span className="rounded-lg bg-gradient-to-r from-brand-500 to-purple-600 px-3 py-1.5 text-sm font-semibold text-white">Brand Button</span>
46          <span className="rounded-lg bg-gradient-to-r from-success-500 to-blue-light-500 px-3 py-1.5 text-sm font-semibold text-white">Fresh Button</span>
47          <span className="rounded-lg bg-gradient-to-r from-warning-500 to-error-500 px-3 py-1.5 text-sm font-semibold text-white">Warm Button</span>
48        </div>
49      </div>
50    </SectionCard>
51  );
52}

More ui elements Components

ButtonsAlertsBadgesCardsDropdownsModalsTabsAccordionsTooltipsProgressSpinnersSkeletonsAvatarsPaginationPopoversToastsTimelinesTypographyBreadcrumbEmpty StatesTag InputCode BlockDividersChipsSwitchesRadio GroupsCheckboxesText InputsTextareasSelect MenusRange SlidersFile UploadColor SwatchesIcon ShowcaseData TagsNotification BadgeStatus IndicatorCountdown TimerGradient TextAnimated UnderlineKeyboard KeysMetric CardsComparison ToggleScroll IndicatorResizable PanelCollapsible SectionsDrag Handle ListTabs with IconsVertical NavBreadcrumb with Dropdown