mirror of
https://github.com/iconify/iconify.git
synced 2025-01-07 15:44:05 +00:00
Export types in Svelte component
This commit is contained in:
parent
96314c0680
commit
ce4385fb4f
@ -1,2 +1,17 @@
|
|||||||
|
// Types
|
||||||
|
export type { IconifyJSON } from '@iconify/types';
|
||||||
|
export type { IconifyIcon } from '@iconify/core/lib/icon';
|
||||||
|
export type {
|
||||||
|
IconifyIconSize,
|
||||||
|
IconifyHorizontalIconAlignment,
|
||||||
|
IconifyVerticalIconAlignment,
|
||||||
|
} from '@iconify/core/lib/customisations';
|
||||||
|
|
||||||
|
// Types from props.ts
|
||||||
|
export type { IconifyIconCustomisations, IconProps } from './props';
|
||||||
|
|
||||||
|
// Component
|
||||||
export { default as Icon } from './Icon.svelte';
|
export { default as Icon } from './Icon.svelte';
|
||||||
|
|
||||||
|
// Functions
|
||||||
export { addIcon, addCollection } from './functions';
|
export { addIcon, addCollection } from './functions';
|
||||||
|
@ -1,2 +1,17 @@
|
|||||||
|
// Types
|
||||||
|
export type { IconifyJSON } from '@iconify/types';
|
||||||
|
export type { IconifyIcon } from '@iconify/core/lib/icon';
|
||||||
|
export type {
|
||||||
|
IconifyIconSize,
|
||||||
|
IconifyHorizontalIconAlignment,
|
||||||
|
IconifyVerticalIconAlignment,
|
||||||
|
} from '@iconify/core/lib/customisations';
|
||||||
|
|
||||||
|
// Types from props.ts
|
||||||
|
export type { IconifyIconCustomisations, IconProps } from './props';
|
||||||
|
|
||||||
|
// Component
|
||||||
export { default as Icon } from './OfflineIcon.svelte';
|
export { default as Icon } from './OfflineIcon.svelte';
|
||||||
|
|
||||||
|
// Functions
|
||||||
export { addIcon, addCollection } from './offline-functions';
|
export { addIcon, addCollection } from './offline-functions';
|
||||||
|
@ -22,15 +22,16 @@ export interface IconifyIconProps extends IconifyIconCustomisations {
|
|||||||
// Shorthand properties
|
// Shorthand properties
|
||||||
flip?: string;
|
flip?: string;
|
||||||
align?: string;
|
align?: string;
|
||||||
|
|
||||||
// Unique id, used as base for ids for shapes. Use it to get consistent ids for server side rendering
|
|
||||||
id?: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Properties for element that are mentioned in generate-icon.ts
|
* Properties for element that are mentioned in render.ts
|
||||||
*/
|
*/
|
||||||
interface IconifyElementProps {
|
interface IconifyElementProps {
|
||||||
|
// Unique id, used as base for ids for shapes. Use it to get consistent ids for server side rendering
|
||||||
|
id?: string;
|
||||||
|
|
||||||
|
// Style
|
||||||
style?: string;
|
style?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user