Skip to content

Commit

Permalink
fix(BaseHeading): fix dynamic component rendering in BaseHeading.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
driss-chelouati committed Dec 18, 2023
1 parent 95c568a commit 3c534ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/base/BaseHeading.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const props = withDefaults(
},
)
const as = useNuiDefaultProperty(props, 'BaseHeading', 'as')
const size = useNuiDefaultProperty(props, 'BaseHeading', 'size')
const weight = useNuiDefaultProperty(props, 'BaseHeading', 'weight')
const lead = useNuiDefaultProperty(props, 'BaseHeading', 'lead')
Expand Down Expand Up @@ -97,7 +98,7 @@ const classes = computed(() => [
</script>

<template>
<component :is="props.as" :class="classes">
<component :is="props.as ? props.as : as" :class="classes">
<slot></slot>
</component>
</template>

0 comments on commit 3c534ea

Please sign in to comment.