forked from BRETT/BRETT
16 lines
512 B
TypeScript
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)
|
|
}
|