my/ui

Command Palette

Search for a command to run...

All components

Tempting Azure

gradients

A "Tempting Azure" CSS gradient.

responsive · 600px

Install

Same command in any shadcn project — React (Vite/CRA), Next.js, Remix, Astro, and more:

$npx shadcn@latest add https://your-domain/r/gradient-tempting-azure.json

Usage

import { GradientTemptingAzure } from "@/registry/gradients/tempting-azure";

export default function Demo() {
  return <GradientTemptingAzure />;
}

Component source

import * as React from "react";
import { cn } from "@/lib/utils";

/** "Tempting Azure" gradient. */
export const GradientTemptingAzure_CSS = "linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%)";

export function GradientTemptingAzure({ className, style, ...props }: React.ComponentProps<"div">) {
  return (
    <div
      className={cn("h-40 w-full rounded-xl", className)}
      style={{ backgroundImage: "linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%)", ...style }}
      {...props}
    />
  );
}

Source: WebGradients