flowbite-svelte-icons
Version:
Flowbite icon components for Svelte 5 Runes
29 lines (28 loc) • 781 B
TypeScript
import type { SVGAttributes } from 'svelte/elements';
export type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
export type SizeAndDimensions = {
size?: Size;
width?: number | string;
height?: number | string;
};
export type TitleType = {
id: string;
title?: string;
} | undefined;
export type DescType = {
id: string;
desc?: string;
} | undefined;
export type BaseProps = SVGAttributes<SVGElement> & SizeAndDimensions & {
color?: string | null;
};
export type OutlineBaseProps = BaseProps & {
strokeWidth?: number | `${number}`;
};
export interface AccessibleProps {
title?: TitleType;
desc?: DescType;
ariaLabel?: string;
}
export type Props = BaseProps & AccessibleProps;
export type OutlineProps = OutlineBaseProps & AccessibleProps;