Skip to content

Commit

Permalink
add typing to flip option
Browse files Browse the repository at this point in the history
  • Loading branch information
RobBrazier committed Mar 5, 2023
1 parent ec2f1f9 commit f4c2dae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/Icon.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
export let spin = false;
export let inverse = false;
export let pulse = false;
export let flip: string = '';
export let flip: 'horizontal' | 'vertical' | undefined = undefined;
export let label: string = '';
export let style: string = '';
export { className as class };
Expand Down
8 changes: 4 additions & 4 deletions src/lib/components/svg/Svg.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@
export let width: number;
export let height: number;
export let box: string | null = null;
export let box: string = '0 0 0 0';
export let spin = false;
export let inverse = false;
export let pulse = false;
export let flip: string | null = null;
export let flip: string = 'none';
// optionals
export let style: string | undefined = undefined;
export let label: string | undefined = undefined;
export let style: string = '';
export let label: string = '';
</script>

0 comments on commit f4c2dae

Please sign in to comment.