A collection of free and open-source collection of SVG illustrations.
npm install flowbite-svelte-illustrations- Svelte 5
- tailwindCSS
``sh`
pnpm i -D flowbite-svelte-illustrations
`svelte
Types
`ts
export type TitleType = {
id?: string;
title?: string;
};export type DescType = {
id?: string;
desc?: string;
};
import type { SVGAttributes } from 'svelte/elements';
interface Props extends SVGAttributes {
color1?: string;
color2?: string;
color3?: string;
color4?: string;
// more colors depends on illustration
ariaLabel?: string;
class?: string;
height?: string;
title?: TitleType;
desc?: DescType;
}
`Props
`md
- color1 = '#2563eb',
- color2 = '#9ab7f6',
- color3 = '#c8d8fa',
- color4 = '#d6e2fb',
// more colors depends on illustration
- ariaLabel = ,
- class: className = 'shrink-0 w-auto max-w-[16rem] h-40 text-gray-800 dark:text-white',
- height = '100',
- title,
- desc,
- ...restProps
``