Skip to content

Commit

Permalink
fix(icon): adjust component prop type (#1028)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlmoravek authored Jul 30, 2024
1 parent c328380 commit a656182
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/oruga/src/components/icon/Icon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { getOption } from "@/utils/config";
import getIcons from "@/utils/icons";
import { defineClasses } from "@/composables";
import type { ComponentClass } from "@/types";
import type { ComponentClass, DynamicComponent } from "@/types";
/**
* Icons take an important role of any application
Expand All @@ -23,7 +23,7 @@ const props = defineProps({
override: { type: Boolean, default: undefined },
/** Icon component name */
component: {
type: String,
type: [String, Object, Function] as PropType<DynamicComponent>,
default: () => getOption("iconComponent"),
},
/**
Expand Down

0 comments on commit a656182

Please sign in to comment.