UNPKG

svelte-kawaii

Version:

Svelte Kawaii is a Svelte port of React Kawaii, offering cute SVG illustrations to add adorable characters to your Svelte applications. A simple way to bring some cuteness to your UI.

26 lines (25 loc) 654 B
import type { SVGAttributes } from 'svelte/elements'; export type TitleType = { id?: string; title?: string; }; export type DescType = { id?: string; desc?: string; }; export type KawaiiMood = 'sad' | 'shocked' | 'happy' | 'blissful' | 'lovestruck' | 'excited' | 'ko'; export type KawaiiProps = SVGAttributes<SVGElement> & { size?: number | string; color?: string; mood?: KawaiiMood; uniqueId?: string; ariaLabel?: string; title?: TitleType; focusable?: 'true' | 'false' | 'auto'; desc?: DescType; }; export type KawaiiFaceProps = { mood?: KawaiiMood; uniqueId?: string; transform?: string; };