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.
35 lines (34 loc) • 745 B
JavaScript
export const MOODS = [
'sad',
'shocked',
'happy',
'blissful',
'lovestruck',
'excited',
'ko'
];
export const DEFAULT_PROPS = {
size: 240,
mood: 'blissful',
color: '#FFD882'
};
export const PROPS_DATA = [
{
name: 'size',
type: 'number | string',
description: 'Size of the SVG in px.',
default: DEFAULT_PROPS.size
},
{
name: 'color',
type: 'string',
description: 'Color of the SVG.',
default: DEFAULT_PROPS.color
},
{
name: 'mood',
type: 'KawaiiMood',
description: `Mood of the Kawaii face. Choose one of: ${MOODS.map((mood) => `"${mood}"`).join(', ')}`,
default: DEFAULT_PROPS.mood
}
];