Files
BRETT/shared/utils/cardBorderEffects.ts
T
2026-10-03 20:07:49 +02:00

16 lines
512 B
TypeScript

// Katalog der verfügbaren Hover-Card-Border-Animationen
export const CARD_BORDER_EFFECTS = [
{ key: 'electric', label: 'Electric' },
{ key: 'beam', label: 'Beam' },
{ key: 'pulse', label: 'Pulse' },
{ key: 'rainbow', label: 'Rainbow' },
] as const
export type CardBorderEffectKey = typeof CARD_BORDER_EFFECTS[number]['key']
const KEYS = new Set<string>(CARD_BORDER_EFFECTS.map(e => e.key))
export function isCardBorderEffect(value: string): value is CardBorderEffectKey {
return KEYS.has(value)
}