Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/runtime/components/AuthForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ defineExpose({

<template>
<Primitive :as="as" :class="ui.root({ class: [props.ui?.root, props.class] })">
<div v-if="(icon || !!slots.icon) || (title || !!slots.title) || (description || !!slots.description) || !!slots.header" :class="ui.header({ class: props.ui?.header })">
<div v-if="(icon || !!slots.leading) || (title || !!slots.title) || (description || !!slots.description) || !!slots.header" :class="ui.header({ class: props.ui?.header })">
<slot name="header">
<div v-if="icon || !!slots.leading" :class="ui.leading({ class: props.ui?.leading })">
<slot name="leading" :ui="ui">
Expand Down
6 changes: 5 additions & 1 deletion test/components/__snapshots__/AuthForm-vue.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,11 @@ exports[`AuthForm > renders with icon correctly 1`] = `

exports[`AuthForm > renders with leading slot correctly 1`] = `
"<div class="w-full space-y-6">
<!--v-if-->
<div class="flex flex-col text-center">
<div class="mb-2">Leading</div>
<!--v-if-->
<!--v-if-->
</div>
<div class="gap-y-6 flex flex-col">
<!--v-if-->
<!--v-if-->
Expand Down
6 changes: 5 additions & 1 deletion test/components/__snapshots__/AuthForm.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,11 @@ exports[`AuthForm > renders with icon correctly 1`] = `

exports[`AuthForm > renders with leading slot correctly 1`] = `
"<div class="w-full space-y-6">
<!--v-if-->
<div class="flex flex-col text-center">
<div class="mb-2">Leading</div>
<!--v-if-->
<!--v-if-->
</div>
<div class="gap-y-6 flex flex-col">
<!--v-if-->
<!--v-if-->
Expand Down
Loading