Displays a beautiful Animations Led Card.
import { ClassValue, clsx } from "clsx"
import { twMerge } from "tailwind-merge"
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}tailwind.config.jsAdd the following animations to your tailwind.config.js file:
/** @type {import('tailwindcss').Config} */
module.exports = {
theme: {
extend: {
keyframes: {
led: {
"0%": { fill: "currentColor", brightness: "1" },
"50%": { fill: "#0891b2", brightness: "500%" },
"100%": { fill: "currentColor", brightness: "1" },
},
}
animation: {
led: "led 100ms ease-in-out",
},
},
},
}| Prop | Type | Description |
|---|---|---|
| word | string | the word to display |
export function Led() {
return <LEDBoard word="BUOU" />
}